updated syntax for 5.0
Marcus Ramberg [Mon, 18 Apr 2005 23:00:14 +0000 (23:00 +0000)]
lib/Catalyst/Test.pm

index 10c52a5..2f91020 100644 (file)
@@ -27,12 +27,12 @@ Catalyst::Test - Test Catalyst applications
 
     use Catalyst qw[-Engine=Test];
 
-    __PACKAGE__->action(
-        foo => sub {
+    sub foo : Global {
             my ( $self, $c ) = @_;
             $c->res->output('bar');
-        }
-    );
+    }
+
+    __PACKAGE__->setup();
 
     package main;