X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp.pm;h=c4f164954599a2a52e62b8d7e2dfb8bfb529e6ef;hb=21465c884872c1ec8c30acd72796445f9eaacb31;hp=acb4a646ecfb1bad0015aab49b0a37512bd0db66;hpb=4d989a5da1809be1088a985e02dff19f89b8cfd6;p=catagits%2FCatalyst-Runtime.git 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(@_); }