tests for the config( ...->{file} ) option. addresses bug when ->{file} is a dir...
[catagits/Catalyst-Plugin-ConfigLoader.git] / t / lib / TestApp3 / Controller / Root.pm
diff --git a/t/lib/TestApp3/Controller/Root.pm b/t/lib/TestApp3/Controller/Root.pm
new file mode 100644 (file)
index 0000000..a682eaa
--- /dev/null
@@ -0,0 +1,16 @@
+package TestApp3::Controller::Root;
+
+use strict;
+use warnings;
+
+use base 'Catalyst::Controller';
+
+__PACKAGE__->config->{namespace} = '';
+
+sub default :Path {
+    my ( $self, $c ) = @_;
+    $c->response->body( 'Page not found' );
+    $c->response->status(404);
+}
+
+1;