Move live_engine_response_print into aggregate
[catagits/Catalyst-Runtime.git] / t / aggregate / live_engine_response_print.t
diff --git a/t/aggregate/live_engine_response_print.t b/t/aggregate/live_engine_response_print.t
new file mode 100644 (file)
index 0000000..85afc80
--- /dev/null
@@ -0,0 +1,24 @@
+#!perl
+
+use strict;
+use warnings;
+
+use FindBin;
+use lib "$FindBin::Bin/lib";
+
+use Test::More tests => 9;
+use Catalyst::Test 'TestApp';
+
+my $expected = {
+   one => "foo",
+   two => "foobar",
+   three => "foo,bar,baz",
+};
+
+for my $action ( sort keys %{$expected} ) {
+    ok( my $response = request('http://localhost/engine/response/print/' . $action ),
+        'Request' );
+    ok( $response->is_success, "Response $action successful 2xx" );
+    
+    is( $response->content, $expected->{$action}, "Content $action OK" );
+}