BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; }
-use Test::More tests => 143*$iters;
+use Test::More tests => 145*$iters;
use Catalyst::Test 'TestApp';
if ( $ENV{CAT_BENCHMARK} ) {
$expected, 'Executed actions' );
}
}
+
+ {
+ ok( my $content =
+ get('http://localhost/chained/return_arg/foo%2Fbar%3B'),
+ 'request with URI-encoded arg' );
+ # this is the CURRENT behavior
+ like( $content, qr{foo%2Fbar%3B\z}, 'args NOT decoded' );
+ }
}
BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; }
-use Test::More tests => 32*$iters;
+use Test::More tests => 34*$iters;
use Catalyst::Test 'TestApp';
if ( $ENV{CAT_BENCHMARK} ) {
"Parameters don't split on %2F"
);
}
+
+ {
+ ok( my $content = get('http://locahost/action/local/five/foo%2Fbar%3B'),
+ 'request with URI-encoded arg');
+ # this is the CURRENT behavior
+ like( $content, qr{'foo/bar;'}, 'args for Local actions URI-decoded' );
+ }
}
sub star_search : Chained('view') PathPart('search') Args(0) { }
sub doc_star : Chained('/') PathPart('chained/doc') Args(1) {}
+sub return_arg : Chained('/') PathPart('chained/return_arg') Args(1) {}
+
sub end :Private {
my ($self, $c) = @_;
return if $c->stash->{no_end};
$c->forward('TestApp::View::Dump::Request');
}
+sub five : Action Local Args(1) {
+ my ( $self, $c ) = @_;
+ $c->forward('TestApp::View::Dump::Request');
+}
+
1;