X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flive_engine_request_parameters.t;h=d93437d10b2e11cc5aa86a556e1c5e45e3be8c5a;hb=de19de2e6f40d9f8986df5e4f37dc8084a7c83ee;hp=851d4c560e7ff067deef3ce720e4721beea65bb6;hpb=3b4d12511c59793e85feca1ac1b4a8c2c5f1a6ae;p=catagits%2FCatalyst-Runtime.git diff --git a/t/live_engine_request_parameters.t b/t/live_engine_request_parameters.t index 851d4c5..d93437d 100644 --- a/t/live_engine_request_parameters.t +++ b/t/live_engine_request_parameters.t @@ -6,13 +6,12 @@ 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; use HTTP::Headers; use HTTP::Request::Common; -use URI; { my $creq; @@ -39,6 +38,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)],