Added Andy to thank you section
[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
9use Test::More no_plan => 1;
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' );
20# is( $response->header('X-Test-Class'), 'TestApp::Controller::Engine::Response::Headers', 'Test Class' );
21 is( $response->header('X-Header-Catalyst'), 'Cool', 'Response Header X-Header-Catalyst' );
22 is( $response->header('X-Header-Cool'), 'Catalyst', 'Response Header X-Header-Cool' );
23 is( $response->header('X-Header-Numbers'), $expected, 'Response Header X-Header-Numbers' );
24}