X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Flive_engine_request_body.t;h=c6670da85e122b9d32b3dac70818017739dd5011;hb=8f6cebb2303a0b0eda9422430f926c3f83c72aed;hp=0a6dea2aae00229ef7d08447a8938f5dea063e61;hpb=b1e0cb6d4ded3d4223517d4adce6caef23112946;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/live_engine_request_body.t b/t/aggregate/live_engine_request_body.t index 0a6dea2..c6670da 100644 --- a/t/aggregate/live_engine_request_body.t +++ b/t/aggregate/live_engine_request_body.t @@ -1,12 +1,11 @@ #!perl - use strict; use warnings; use FindBin; use lib "$FindBin::Bin/../lib"; -use Test::More tests => 18; +use Test::More tests => 23; use Catalyst::Test 'TestApp'; use Catalyst::Request; @@ -39,6 +38,7 @@ use HTTP::Request::Common; isa_ok( $creq, 'Catalyst::Request' ); is( $creq->method, 'POST', 'Catalyst::Request method' ); is( $creq->content_type, 'text/plain', 'Catalyst::Request Content-Type' ); + is( $creq->{__body_type}, 'File::Temp' ); is( $creq->content_length, $request->content_length, 'Catalyst::Request Content-Length' ); } @@ -72,14 +72,13 @@ use HTTP::Request::Common; isa_ok( $creq, 'Catalyst::Request' ); is( $creq->method, 'POST', 'Catalyst::Request method' ); is( $creq->content_type, 'text/plain', 'Catalyst::Request Content-Type' ); + is( $creq->{__body_type}, 'File::Temp' ); is( $creq->content_length, $request->content_length, 'Catalyst::Request Content-Length' ); } # 5.80 regression, see note in Catalyst::Plugin::Test::Plugin -TODO: { - local $TODO = 'On demand request body parsing in prepare_action broken'; - +{ my $request = GET( 'http://localhost/have_req_body_in_prepare_action', 'Content-Type' => 'text/plain',