Returned the foo() action to TestAppPathBug.pm so it tests the right bug. Added a...
[catagits/Catalyst-Runtime.git] / t / lib / TestAppPathBug.pm
index 04582a7..a91b5fe 100644 (file)
@@ -3,6 +3,8 @@ use warnings;
 
 package TestAppPathBug;
 
+BEGIN { $SIG{__WARN__} = sub {}; };
+
 use Catalyst;
 
 our $VERSION = '0.01';
@@ -11,4 +13,9 @@ __PACKAGE__->config( name => 'TestAppPathBug', root => '/some/dir' );
 
 __PACKAGE__->setup;
 
+sub foo : Path {
+    my ( $self, $c ) = @_;
+    $c->res->body( 'This is the foo method.' );
+}
+
 1;