X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F10forward.t;h=3920e030a5ff3e73f810b96a8af02e95b0b0da05;hb=424b2705f759cef65acfaf8ea0f43e6bef75b534;hp=934c058916d3bf2a5e4a9b10c1aa83427506a86a;hpb=5a8fd7e9d4cca2af0237e1659f061cc64618bfe6;p=catagits%2FCatalyst-Runtime.git diff --git a/t/10forward.t b/t/10forward.t index 934c058..3920e03 100644 --- a/t/10forward.t +++ b/t/10forward.t @@ -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;