updated syntax for 5.0
[catagits/Catalyst-Runtime.git] / 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;