use warnings;
use FindBin;
-use lib "$FindBin::Bin/../../../lib";
+use lib "$FindBin::Bin/lib";
our $iters;
-BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 2; }
+BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; }
use Test::More tests => 30*$iters;
use Catalyst::Test 'TestApp';
{
ok(
my $response =
- request('http://localhost/action/path/a path with spaces'),
+ request('http://localhost/action/path/a%20path%20with%20spaces'),
'Request'
);
ok( $response->is_success, 'Response Successful 2xx' );
is( $response->content_type, 'text/plain', 'Response Content-Type' );
is(
$response->header('X-Catalyst-Action'),
- 'action/path/a path with spaces',
+ 'action/path/a%20path%20with%20spaces',
'Test Action'
);
is(
ok( $response->is_success, 'Response Successful 2xx' );
is( $response->content_type, 'text/plain', 'Response Content-Type' );
is( $response->header('X-Catalyst-Action'),
- 'action/path/åäö', 'Test Action' );
+ 'action/path/%C3%A5%C3%A4%C3%B6', 'Test Action' );
is(
$response->header('X-Test-Class'),
'TestApp::Controller::Action::Path',