X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F04plainaction.t;fp=t%2F04plainaction.t;h=ed448db8649c0258e06b50935a54f0ee658c51c1;hb=dea8ff68a7552057e3850b2a1ebc4f2190c769af;hp=6ca8e81a34f1c0deb63afe1954c31193a299bc98;hpb=bea4160a7769e77996d8a820fc2602bd3f0f9029;p=catagits%2FCatalyst-Runtime.git diff --git a/t/04plainaction.t b/t/04plainaction.t index 6ca8e81..ed448db 100644 --- a/t/04plainaction.t +++ b/t/04plainaction.t @@ -2,12 +2,12 @@ package TestApp; use Catalyst qw[-Engine=Test]; -__PACKAGE__->action( - foo => sub { - my ( $self, $c ) = @_; - $c->res->output('bar'); - } -); +sub foo : Global { + my ( $self, $c ) = @_; + $c->res->output('bar'); +} + +__PACKAGE__->setup; package main;