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