X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Flive_engine_request_uploads.t;h=df98f08a7023a24aae4816130c7e4b81401d92b4;hb=a3a688635aedaf0be88709d91b447ddfc84f8b46;hp=47913dbbec9f6727bfd17cc43c640bdd0730325f;hpb=ad51fa70a7d26981b1da0dabdc1e193ade38f3d7;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/live_engine_request_uploads.t b/t/aggregate/live_engine_request_uploads.t index 47913db..df98f08 100644 --- a/t/aggregate/live_engine_request_uploads.t +++ b/t/aggregate/live_engine_request_uploads.t @@ -6,7 +6,7 @@ use warnings; use FindBin; use lib "$FindBin::Bin/../lib"; -use Test::More tests => 101; +use Test::More tests => 105; use Catalyst::Test 'TestApp'; use Catalyst::Request; @@ -134,6 +134,7 @@ use Path::Class::Dir; is( $upload->type, $part->content_type, 'Upload Content-Type' ); is( $upload->filename, $parameters{filename}, 'Upload filename' ); is( $upload->size, length( $part->content ), 'Upload Content-Length' ); + is( $upload->basename, $parameters{filename}, 'Upload basename' ); SKIP: { @@ -276,6 +277,7 @@ use Path::Class::Dir; is( $upload->type, $part->content_type, 'Upload Content-Type' ); is( $upload->size, length( $part->content ), 'Upload Content-Length' ); is( $upload->filename, 'catalyst_130pix.gif', 'Upload Filename' ); + is( $upload->basename, 'catalyst_130pix.gif', 'Upload basename' ); SKIP: {