7 use lib "$FindBin::Bin/../../../lib";
9 use Test::More tests => 120;
10 use Catalyst::Test 'TestApp';
14 ok( my $response = request('http://localhost/action/regexp/10/hello'),
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/regexp/(\d+)/(\w+)$', 'Test Action' );
21 $response->header('X-Test-Class'),
22 'TestApp::Controller::Action::Regexp',
27 qr/^bless\( .* 'Catalyst::Request' \)$/s,
28 'Content is a serialized Catalyst::Request'
33 ok( my $response = request('http://localhost/action/regexp/hello/10'),
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/regexp/(\w+)/(\d+)$', 'Test Action' );
40 $response->header('X-Test-Class'),
41 'TestApp::Controller::Action::Regexp',
46 qr/^bless\( .* 'Catalyst::Request' \)$/s,
47 'Content is a serialized Catalyst::Request'