Moved some PAR stuff
[catagits/Catalyst-Runtime.git] / t / live / lib / TestApp.pm
index 974e9f3..594dfa3 100644 (file)
@@ -12,7 +12,7 @@ TestApp->setup;
 
 sub index : Private {
     my ( $self, $c ) = @_;
-    $c->res->body( 'root index' );
+    $c->res->body('root index');
 }
 
 sub global_action : Private {
@@ -33,6 +33,9 @@ sub execute {
     elsif ( $action =~ /\/(\w+)$/ ) {
         $method = $1;
     }
+    elsif ( $action =~ /^(\w+)$/ ) {
+        $method = $action;
+    }
 
     if ( $class && $method && $method !~ /^_/ ) {
         my $executed = sprintf( "%s->%s", $class, $method );
@@ -47,4 +50,8 @@ sub execute {
     return $c->SUPER::execute(@_);
 }
 
+{
+    no warnings 'redefine';
+    sub Catalyst::Log::error { }
+}
 1;