Added Root.pm to avoid '[error] No default action defined'
Dan Dascalescu [Fri, 7 Aug 2009 11:08:35 +0000 (11:08 +0000)]
t/lib/TestApp/Controller/Root.pm [new file with mode: 0644]

diff --git a/t/lib/TestApp/Controller/Root.pm b/t/lib/TestApp/Controller/Root.pm
new file mode 100644 (file)
index 0000000..c669bd9
--- /dev/null
@@ -0,0 +1,15 @@
+package TestApp::Controller::Root;
+
+use strict;
+use warnings;
+use parent 'Catalyst::Controller';
+
+__PACKAGE__->config->{namespace} = '';
+
+sub default :Path {
+    my ( $self, $c ) = @_;
+    $c->response->body( 'Page not found' );
+    $c->response->status(404);
+}
+
+1;