X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F06parameters.t;h=6e3e4ef24bfb4c3afb427f35bdc70c6ee3e3bb77;hb=dea8ff68a7552057e3850b2a1ebc4f2190c769af;hp=2465ddc1590997108bd1e05d6a0d77970036a8ba;hpb=bea4160a7769e77996d8a820fc2602bd3f0f9029;p=catagits%2FCatalyst-Runtime.git diff --git a/t/06parameters.t b/t/06parameters.t index 2465ddc..6e3e4ef 100644 --- a/t/06parameters.t +++ b/t/06parameters.t @@ -2,12 +2,12 @@ package TestApp; use Catalyst qw[-Engine=Test]; -__PACKAGE__->action( - foo => sub { - my ( $self, $c ) = @_; - $c->res->output( $c->req->params->{foo} ); - } -); +sub foo : Global { + my ( $self, $c ) = @_; + $c->res->output( $c->req->params->{foo} ); +} + +__PACKAGE__->setup; package main;