From: Dan Dascalescu Date: Fri, 7 Aug 2009 11:08:35 +0000 (+0000) Subject: Added Root.pm to avoid '[error] No default action defined' X-Git-Tag: v0.25~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-ConfigLoader.git;a=commitdiff_plain;h=eb1a771f89ce5caee023f80fe8997e1cbff88744 Added Root.pm to avoid '[error] No default action defined' --- diff --git a/t/lib/TestApp/Controller/Root.pm b/t/lib/TestApp/Controller/Root.pm new file mode 100644 index 0000000..c669bd9 --- /dev/null +++ b/t/lib/TestApp/Controller/Root.pm @@ -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;