X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flive_engine_request_parameters.t;fp=t%2Flive_engine_request_parameters.t;h=1f1091f20944bd9126e59e6408a453d9ee0e5765;hb=7d22a5373b8e3c57c1c6a9cae3d246efb840a8ea;hp=851d4c560e7ff067deef3ce720e4721beea65bb6;hpb=cf736b29312f5ccb34073397083b7ac5c73a0e0d;p=catagits%2FCatalyst-Runtime.git diff --git a/t/live_engine_request_parameters.t b/t/live_engine_request_parameters.t index 851d4c5..1f1091f 100644 --- a/t/live_engine_request_parameters.t +++ b/t/live_engine_request_parameters.t @@ -6,7 +6,7 @@ use warnings; use FindBin; use lib "$FindBin::Bin/lib"; -use Test::More tests => 30; +use Test::More tests => 35; use Catalyst::Test 'TestApp'; use Catalyst::Request; @@ -39,6 +39,16 @@ use URI; { my $creq; + ok( my $response = request("http://localhost/dump/request?q=foo%2bbar"), + 'Request' ); + ok( $response->is_success, 'Response Successful 2xx' ); + is( $response->content_type, 'text/plain', 'Response Content-Type' ); + ok( eval '$creq = ' . $response->content ); + is $creq->{parameters}->{q}, 'foo+bar', '%2b not double decoded'; +} + +{ + my $creq; my $parameters = { 'a' => [qw(A b C d E f G)],