Added recursive -r flag to prove example
[catagits/Catalyst-Runtime.git] / t / engine / response / headers.t
CommitLineData
dd4e6fd2 1#!perl
2
3use strict;
4use warnings;
5
6use FindBin;
7use lib "$FindBin::Bin/../../lib";
8
c20bd9d9 9use Test::More tests => 7;
dd4e6fd2 10use 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}