X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F13no_include_path.t;fp=t%2F13no_include_path.t;h=b3d2137c18ad5c760654d7923caff454eb692fc6;hb=5ce67b0bac5e50b600b68ec341866822a7472b07;hp=0000000000000000000000000000000000000000;hpb=b6f6ec3fedacba5b7e65eb34541d745dffb057ee;p=catagits%2FCatalyst-Plugin-Static-Simple.git diff --git a/t/13no_include_path.t b/t/13no_include_path.t new file mode 100644 index 0000000..b3d2137 --- /dev/null +++ b/t/13no_include_path.t @@ -0,0 +1,17 @@ +#!perl + +use strict; +use warnings; + +use FindBin; +use lib "$FindBin::Bin/lib"; + +use Test::More tests => 4; +use Catalyst::Test 'TestApp'; + +# test passthrough to root +ok( my $res = request('http://localhost/images/bad.gif'), 'request ok' ); +is( $res->content_type, 'image/gif', 'root path ok' ); + +is( scalar @{ TestApp->config->{'Plugin::Static::Simple'}->{include_path} }, 1, 'One include path used'); +is( TestApp->config->{'Plugin::Static::Simple'}->{include_path}->[0], TestApp->config->{root}, "It's the root path" );