X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fengine%2Frequest%2Fuploads.t;h=5e82f849f2972bb7a9612537c4f487d317232de8;hb=06e1b6164a2c9d7b463f358b0d1934ef83a82845;hp=09cfec97738bd3ee6fb2e043898c4c1e9b283e99;hpb=d3fced79abccd1b7215f84ac1f60e1140ade1cdf;p=catagits%2FCatalyst-Runtime.git diff --git a/t/engine/request/uploads.t b/t/engine/request/uploads.t index 09cfec9..5e82f84 100644 --- a/t/engine/request/uploads.t +++ b/t/engine/request/uploads.t @@ -6,7 +6,7 @@ use warnings; use FindBin; use lib "$FindBin::Bin/../../lib"; -use Test::More no_plan => 1; +use Test::More tests => 18; use Catalyst::Test 'TestApp'; use Catalyst::Request; @@ -29,9 +29,9 @@ use HTTP::Request::Common; ok( my $response = request($request), 'Request' ); ok( $response->is_success, 'Response Successful 2xx' ); - is( $response->content_type, 'text/plain', 'Response Content-Type' ); + is( $response->content_type, 'text/plain', 'Response Content-Type' ); like( $response->content, qr/^bless\( .* 'Catalyst::Request' \)$/s, 'Content is a serialized Catalyst::Request' ); - + { no strict 'refs'; ok( eval '$creq = ' . $response->content, 'Unserialize Catalyst::Request' );