X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flive_engine_request_parameters.t;h=81c9ba98e8285bee96943c7a2684441308ddae8a;hb=36dbb986bd549b6e6704c81b654b9fef90eb03a8;hp=1f1091f20944bd9126e59e6408a453d9ee0e5765;hpb=7d22a5373b8e3c57c1c6a9cae3d246efb840a8ea;p=catagits%2FCatalyst-Runtime.git diff --git a/t/live_engine_request_parameters.t b/t/live_engine_request_parameters.t index 1f1091f..81c9ba9 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 => 35; +use Test::More tests => 40; use Catalyst::Test 'TestApp'; use Catalyst::Request; use HTTP::Headers; use HTTP::Request::Common; -use URI; { my $creq; @@ -49,6 +48,16 @@ use URI; { my $creq; + ok( my $response = request("http://localhost/dump/request?q=foo=bar"), + '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', '= not ignored'; +} + +{ + my $creq; my $parameters = { 'a' => [qw(A b C d E f G)],