whitespace cleanup
[catagits/Catalyst-Runtime.git] / t / lib / ACLTestApp.pm
index ec87027..5c6aadb 100644 (file)
@@ -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( @_ );