15/16 OK
[catagits/Catalyst-Runtime.git] / t / 09cookies.t
index 833f28a..fa4171a 100644 (file)
@@ -2,12 +2,12 @@ package TestApp;
 
 use Catalyst qw[-Engine=Test];
 
-__PACKAGE__->action(
-    foo => sub {
-        my ( $self, $c ) = @_;
-        $c->res->cookies->{foo} = { value => 'bar' };
-    }
-);
+sub foo : Global {
+  my ( $self, $c ) = @_;
+  $c->res->cookies->{foo} = { value => 'bar' };
+}
+
+__PACKAGE__->setup;
 
 package main;