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_uploads.t;h=df98f08a7023a24aae4816130c7e4b81401d92b4;hp=47913dbbec9f6727bfd17cc43c640bdd0730325f;hb=a12e6f1755826fd4f52bfaace47aef562cb758b8;hpb=8b05105204b3eaeebf97940006456fd5bd55481c 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: {