whitespace cleanup
[catagits/Catalyst-Runtime.git] / t / aggregate / live_engine_response_print.t
CommitLineData
e4cc83b2 1use strict;
2use warnings;
3
4use FindBin;
9c8b81a2 5use lib "$FindBin::Bin/../lib";
e4cc83b2 6
7use Test::More tests => 9;
8use Catalyst::Test 'TestApp';
9
10my $expected = {
11 one => "foo",
12 two => "foobar",
fe3083a8 13 three => "foo,bar,baz:",
e4cc83b2 14};
15
1e6db81d 16for my $action ( sort keys %{$expected} ) {
e4cc83b2 17 ok( my $response = request('http://localhost/engine/response/print/' . $action ),
18 'Request' );
19 ok( $response->is_success, "Response $action successful 2xx" );
88e5a8b0 20
e4cc83b2 21 is( $response->content, $expected->{$action}, "Content $action OK" );
22}