7 use lib "$FindBin::Bin/../../lib";
9 use Test::More tests => 7;
10 use Catalyst::Test 'TestApp';
14 my $expected = join( ', ', 1 .. 10 );
16 ok( my $response = request('http://localhost/engine/response/headers/one'), 'Request' );
17 ok( $response->is_success, 'Response Successful 2xx' );
18 is( $response->code, 200, 'Response Code' );
19 is( $response->header('X-Catalyst-Action'), 'engine/response/headers/one', 'Test Action' );
20 is( $response->header('X-Header-Catalyst'), 'Cool', 'Response Header X-Header-Catalyst' );
21 is( $response->header('X-Header-Cool'), 'Catalyst', 'Response Header X-Header-Cool' );
22 is( $response->header('X-Header-Numbers'), $expected, 'Response Header X-Header-Numbers' );