X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F11redirect.t;fp=t%2F11redirect.t;h=8ac6237f201626e68d10089d3ab298d6aa97ab22;hb=a8ed7612b5afccad8cfda4fe1dc8947bda89516d;hp=ef9e53729ed254ae6dcf9e73c7b3a677756f7f2a;hpb=dea8ff68a7552057e3850b2a1ebc4f2190c769af;p=catagits%2FCatalyst-Runtime.git diff --git a/t/11redirect.t b/t/11redirect.t index ef9e537..8ac6237 100644 --- a/t/11redirect.t +++ b/t/11redirect.t @@ -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;