Change configuration key to 'Plugin::Static::Simple' by default.
[catagits/Catalyst-Plugin-Static-Simple.git] / t / 06include_path.t
index 144f39a..b0d2d26 100644 (file)
@@ -1,29 +1,29 @@
-#!perl\r
-\r
-use strict;\r
-use warnings;\r
-\r
-use FindBin;\r
-use lib "$FindBin::Bin/lib";\r
-\r
-use Test::More tests => 6;\r
-use Catalyst::Test 'TestApp';\r
-\r
-# test altenate root dirs\r
-TestApp->config->{static}->{include_path} = [\r
-    TestApp->config->{root} . '/overlay',\r
-    \&TestApp::incpath_generator,\r
-    TestApp->config->{root},\r
-];\r
-\r
-# test overlay dir\r
-ok( my $res = request('http://localhost/overlay.jpg'), 'request ok' );\r
-is( $res->content_type, 'image/jpeg', 'overlay path ok' );\r
-\r
-# test incpath_generator\r
-ok( $res = request('http://localhost/incpath.css'), 'request ok' );\r
-is( $res->content_type, 'text/css', 'incpath coderef ok' );\r
-\r
-# test passthrough to root\r
-ok( $res = request('http://localhost/images/bad.gif'), 'request ok' );\r
-is( $res->content_type, 'image/gif', 'root path ok' );\r
+#!perl
+
+use strict;
+use warnings;
+
+use FindBin;
+use lib "$FindBin::Bin/lib";
+
+use Test::More tests => 6;
+use Catalyst::Test 'TestApp';
+
+# test altenate root dirs
+TestApp->config->{'Plugin::Static::Simple'}->{include_path} = [
+    TestApp->config->{root} . '/overlay',
+    \&TestApp::incpath_generator,
+    TestApp->config->{root},
+];
+
+# test overlay dir
+ok( my $res = request('http://localhost/overlay.jpg'), 'request ok' );
+is( $res->content_type, 'image/jpeg', 'overlay path ok' );
+
+# test incpath_generator
+ok( $res = request('http://localhost/incpath.css'), 'request ok' );
+is( $res->content_type, 'text/css', 'incpath coderef ok' );
+
+# test passthrough to root
+ok( $res = request('http://localhost/images/bad.gif'), 'request ok' );
+is( $res->content_type, 'image/gif', 'root path ok' );