From: Tomas Doran Date: Tue, 18 Aug 2009 00:44:37 +0000 (+0000) Subject: Something like this X-Git-Tag: 5.80013~12^2~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=f15ff320402420ecfdf793cf63671da0c104bf6f Something like this --- diff --git a/t/lib/TestAppPathBug.pm b/t/lib/TestAppPathBug.pm index a91b5fe..74a2f27 100644 --- a/t/lib/TestAppPathBug.pm +++ b/t/lib/TestAppPathBug.pm @@ -2,15 +2,15 @@ use strict; use warnings; package TestAppPathBug; - -BEGIN { $SIG{__WARN__} = sub {}; }; - +use strict; +use warnings; use Catalyst; our $VERSION = '0.01'; __PACKAGE__->config( name => 'TestAppPathBug', root => '/some/dir' ); +__PACKAGE__->log(TestAppPathBug::Log->new); __PACKAGE__->setup; sub foo : Path { @@ -18,4 +18,11 @@ sub foo : Path { $c->res->body( 'This is the foo method.' ); } +package TestAppPathBug::Log; +use strict; +use warnings; +use base qw/Catalyst::Log/; + +sub warn {} + 1;