7 use lib "$FindBin::Bin/../../../lib";
9 use Test::More tests => 120;
10 use Catalyst::Test 'TestApp';
16 request('http://localhost/action/path/a path with spaces'),
19 ok( $response->is_success, 'Response Successful 2xx' );
20 is( $response->content_type, 'text/plain', 'Response Content-Type' );
22 $response->header('X-Catalyst-Action'),
23 'action/path/a path with spaces',
27 $response->header('X-Test-Class'),
28 'TestApp::Controller::Action::Path',
33 qr/^bless\( .* 'Catalyst::Request' \)$/s,
34 'Content is a serialized Catalyst::Request'
39 ok( my $response = request('http://localhost/action/path/åäö'),
41 ok( $response->is_success, 'Response Successful 2xx' );
42 is( $response->content_type, 'text/plain', 'Response Content-Type' );
43 is( $response->header('X-Catalyst-Action'),
44 'action/path/åäö', 'Test Action' );
46 $response->header('X-Test-Class'),
47 'TestApp::Controller::Action::Path',
52 qr/^bless\( .* 'Catalyst::Request' \)$/s,
53 'Content is a serialized Catalyst::Request'