X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flib%2FTestApp.pm;h=c4f164954599a2a52e62b8d7e2dfb8bfb529e6ef;hp=acb4a646ecfb1bad0015aab49b0a37512bd0db66;hb=1408d0a4a06459625233de7e50c38707c184a83f;hpb=2930d61024f0e6aad2efb559d082347c52147e5e diff --git a/t/lib/TestApp.pm b/t/lib/TestApp.pm index acb4a64..c4f1649 100644 --- a/t/lib/TestApp.pm +++ b/t/lib/TestApp.pm @@ -2,6 +2,7 @@ package TestApp; use strict; use Catalyst qw[Test::Errors Test::Headers]; +use Catalyst::Utils; our $VERSION = '0.01'; @@ -33,10 +34,11 @@ sub execute { $method = $1; } - my $executed = sprintf( "%s->%s", $class, $method ) - if ( $class && $method ); - - $c->response->headers->push_header( 'X-Catalyst-Executed' => $executed ); + if ( $class && $method ) { + my $executed = sprintf( "%s->%s", $class, $method ); + $c->response->headers->push_header( 'X-Catalyst-Executed' => $executed ); + } + return $c->SUPER::execute(@_); }