i want some kick ass tests for this :)
[catagits/Catalyst-Runtime.git] / t / 11redirect.t
index ef9e537..8ac6237 100644 (file)
@@ -2,12 +2,12 @@ package TestApp;
 
 use Catalyst qw[-Engine=Test];
 
-__PACKAGE__->action(
-    foo => sub {
-        my ( $self, $c ) = @_;
-        $c->res->redirect('http://localhost/bar');
-    }
-);
+sub foo : Global {
+    my ( $self, $c ) = @_;
+    $c->res->redirect('http://localhost/bar');
+}
+
+__PACKAGE__->setup;
 
 package main;