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