Commit | Line | Data |
dd4e6fd2 |
1 | #!perl |
2 | |
3 | use strict; |
4 | use warnings; |
5 | |
6 | use FindBin; |
7 | use lib "$FindBin::Bin/../../lib"; |
8 | |
c20bd9d9 |
9 | use Test::More tests => 7; |
dd4e6fd2 |
10 | use Catalyst::Test 'TestApp'; |
11 | |
12 | |
13 | { |
14 | my $expected = join( ', ', 1 .. 10 ); |
15 | |
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' ); |
dd4e6fd2 |
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' ); |
23 | } |