new test suit
[catagits/Catalyst-Runtime.git] / t / engine / response / headers.t
1 #!perl
2
3 use strict;
4 use warnings;
5
6 use FindBin;
7 use lib "$FindBin::Bin/../../lib";
8
9 use Test::More no_plan => 1;
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' );
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 }