7 use lib "$FindBin::Bin/../../../lib";
9 use Test::More tests => 180;
10 use Catalyst::Test 'TestApp';
14 ok( my $response = request('http://localhost/action_global_one'),
16 ok( $response->is_success, 'Response Successful 2xx' );
17 is( $response->content_type, 'text/plain', 'Response Content-Type' );
18 is( $response->header('X-Catalyst-Action'),
19 'action_global_one', 'Test Action' );
21 $response->header('X-Test-Class'),
22 'TestApp::Controller::Action::Global',
27 qr/^bless\( .* 'Catalyst::Request' \)$/s,
28 'Content is a serialized Catalyst::Request'
33 ok( my $response = request('http://localhost/action_global_two'),
35 ok( $response->is_success, 'Response Successful 2xx' );
36 is( $response->content_type, 'text/plain', 'Response Content-Type' );
37 is( $response->header('X-Catalyst-Action'),
38 'action_global_two', 'Test Action' );
40 $response->header('X-Test-Class'),
41 'TestApp::Controller::Action::Global',
46 qr/^bless\( .* 'Catalyst::Request' \)$/s,
47 'Content is a serialized Catalyst::Request'
52 ok( my $response = request('http://localhost/action_global_three'),
54 ok( $response->is_success, 'Response Successful 2xx' );
55 is( $response->content_type, 'text/plain', 'Response Content-Type' );
56 is( $response->header('X-Catalyst-Action'),
57 'action_global_three', 'Test Action' );
59 $response->header('X-Test-Class'),
60 'TestApp::Controller::Action::Global',
65 qr/^bless\( .* 'Catalyst::Request' \)$/s,
66 'Content is a serialized Catalyst::Request'