X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Flive_engine_request_body.t;h=40d7ab294cc1b8117aa4d6fa099f8847ac5844bd;hb=069355dabccdbb5fd15a4c7cabd7ef3b96963182;hp=f5c506682f5563fe9523b6e2d5007bc4b5feb8ec;hpb=42da66a91b0a87ebb81d8552bcd0b05d3557c83e;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/live_engine_request_body.t b/t/aggregate/live_engine_request_body.t index f5c5066..40d7ab2 100644 --- a/t/aggregate/live_engine_request_body.t +++ b/t/aggregate/live_engine_request_body.t @@ -6,7 +6,7 @@ use warnings; use FindBin; use lib "$FindBin::Bin/../lib"; -use Test::More tests => 18; +use Test::More tests => 21; use Catalyst::Test 'TestApp'; use Catalyst::Request; @@ -75,3 +75,17 @@ use HTTP::Request::Common; is( $creq->content_length, $request->content_length, 'Catalyst::Request Content-Length' ); } + +# 5.80 regression, see note in Catalyst::Plugin::Test::Plugin +{ + my $request = GET( + 'http://localhost/have_req_body_in_prepare_action', + 'Content-Type' => 'text/plain', + 'Content' => 'x' x 100_000 + ); + + ok( my $response = request($request), 'Request' ); + ok( $response->is_success, 'Response Successful 2xx' ); + like( $response->content, qr/^[1-9]/, 'Has body' ); +} +