make t/04 to t/10 pass.
[catagits/Catalyst-Runtime.git] / t / 10forward.t
index 934c058..3920e03 100644 (file)
@@ -2,16 +2,16 @@ package TestApp;
 
 use Catalyst qw[-Engine=Test];
 
-__PACKAGE__->action(
-    foo => sub {
-        my ( $self, $c ) = @_;
-        $c->forward('bar');
-    },
-    bar => sub {
-        my ( $self, $c, $arg ) = @_;
-        $c->res->output($arg);
-    }
-);
+sub foo : Global {
+    my ( $self, $c ) = @_;
+    $c->forward('bar');
+}
+sub bar : Global {
+    my ( $self, $c, $arg ) = @_;
+    $c->res->output($arg);
+}
+
+__PACKAGE__->setup;
 
 package main;