X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Flive_engine_response_print.t;fp=t%2Faggregate%2Flive_engine_response_print.t;h=85afc805cc0658732d0fd1361873019208091724;hb=77f23d2a797fdde1e4e8e21c6bdff58639144383;hp=0000000000000000000000000000000000000000;hpb=f242375e58eafd3466885be0b3f71404ecd758d2;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/live_engine_response_print.t b/t/aggregate/live_engine_response_print.t new file mode 100644 index 0000000..85afc80 --- /dev/null +++ b/t/aggregate/live_engine_response_print.t @@ -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" ); +}