summaryrefslogtreecommitdiffstats
path: root/t/upload-basename.t
diff options
context:
space:
mode:
Diffstat (limited to 't/upload-basename.t')
-rw-r--r--t/upload-basename.t13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/upload-basename.t b/t/upload-basename.t
new file mode 100644
index 0000000..d13c489
--- /dev/null
+++ b/t/upload-basename.t
@@ -0,0 +1,13 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More;
+
+use Web::Request::Upload;
+
+my $upload = Web::Request::Upload->new(
+ filename => '/tmp/foo/bar/hoge.txt',
+);
+is $upload->basename, 'hoge.txt';
+
+done_testing;