X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FACLTestApp.pm;h=5c6aadbe671f54b298baaca90a5f99f45bf61014;hb=eebd1520470f767fdefdc03c1fe05427e5f182f9;hp=ec87027e6c7168003ee100eb85b36c31bf2b2dd6;hpb=b3986722960128cc5a6e406064438f2637a8d778;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/ACLTestApp.pm b/t/lib/ACLTestApp.pm index ec87027..5c6aadb 100644 --- a/t/lib/ACLTestApp.pm +++ b/t/lib/ACLTestApp.pm @@ -5,17 +5,20 @@ use strict; use warnings; use MRO::Compat; use Scalar::Util (); +use TestLogger; use base qw/Catalyst Catalyst::Controller/; use Catalyst qw//; +__PACKAGE__->log(TestLogger->new); + sub execute { my $c = shift; my ( $class, $action ) = @_; if ( Scalar::Util::blessed($action) - and $action->name ne "foobar" ) { - eval { $c->detach( 'foobar', [$action, 'foo'] ) }; + and $action->name ne "foobar" ) { + eval { $c->detach( 'foobar', [$action, 'foo'] ) }; } $c->next::method( @_ );