X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F04static.t;h=bae292281920403a72a3d68b851540cf65e0ef26;hb=4e8215c6d01ee56a71096f9aec4ae53ea743be54;hp=ee6bcbdc41905c768a38eb63026f3321738e1e44;hpb=792411e602ff6b5f70844518aca6a9792fe3c22a;p=catagits%2FCatalyst-Plugin-Static-Simple.git diff --git a/t/04static.t b/t/04static.t index ee6bcbd..bae2922 100644 --- a/t/04static.t +++ b/t/04static.t @@ -10,7 +10,7 @@ use lib "$FindBin::Bin/lib"; my $has_space_file = -e "$FindBin::Bin/lib/TestApp/root/files/space file.txt"; use Test::More; -plan tests => ($has_space_file) ? 10 : 7; +plan tests => ($has_space_file) ? 12 : 9; use Catalyst::Test 'TestApp'; # test getting a css file @@ -32,3 +32,6 @@ is( $res->content, 'default', 'default handler for non-existent content ok' ); # test unknown extension ok( $res = request('http://localhost/files/err.omg'), 'request ok' ); is( $res->content_type, 'text/plain', 'unknown extension as text/plain ok' ); + +ok( $res = request('http://localhost/files/empty.txt'), 'request ok' ); +is( $res->content, '', 'empty files result in an empty response' );