X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Faggregate%2Flive_engine_request_parameters.t;h=e97ba81e94598cd627b493810ae75d0d57a2d0b6;hp=56a707498dd7c4f901cfb517d1da3bc7e043045c;hb=b76e3717f2e1f4f7d7532a9c6ccf04791f373145;hpb=c80736fa195ad211ab3cf0f17d9907d67c1cb280 diff --git a/t/aggregate/live_engine_request_parameters.t b/t/aggregate/live_engine_request_parameters.t index 56a7074..e97ba81 100644 --- a/t/aggregate/live_engine_request_parameters.t +++ b/t/aggregate/live_engine_request_parameters.t @@ -6,7 +6,7 @@ use warnings; use FindBin; use lib "$FindBin::Bin/../lib"; -use Test::More tests => 53; +use Test::More tests => 54; use Catalyst::Test 'TestApp'; use Catalyst::Request; @@ -71,8 +71,6 @@ use HTTP::Request::Common; 'Content-Type' => 'application/x-www-form-urlencoded' ); - unshift( @{ $parameters->{a} }, 1, 2, 3 ); - ok( my $response = request($request), 'Request' ); ok( $response->is_success, 'Response Successful 2xx' ); is( $response->content_type, 'text/plain', 'Response Content-Type' ); @@ -84,6 +82,9 @@ use HTTP::Request::Common; ok( eval '$creq = ' . $response->content, 'Unserialize Catalyst::Request' ); isa_ok( $creq, 'Catalyst::Request' ); is( $creq->method, 'POST', 'Catalyst::Request method' ); + is_deeply( $creq->body_parameters, $parameters, + 'Catalyst::Request body_parameters' ); + unshift( @{ $parameters->{a} }, 1, 2, 3 ); is_deeply( $creq->parameters, $parameters, 'Catalyst::Request parameters' ); is_deeply( $creq->arguments, [qw(a b)], 'Catalyst::Request arguments' );