X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F08headers.t;h=806306075088247575dbe7ea25c93ca50af78fb4;hb=dea8ff68a7552057e3850b2a1ebc4f2190c769af;hp=70288f9c1217936ad05a0ae80d04c395fc8af955;hpb=bea4160a7769e77996d8a820fc2602bd3f0f9029;p=catagits%2FCatalyst-Runtime.git diff --git a/t/08headers.t b/t/08headers.t index 70288f9..8063060 100644 --- a/t/08headers.t +++ b/t/08headers.t @@ -2,12 +2,12 @@ package TestApp; use Catalyst qw[-Engine=Test]; -__PACKAGE__->action( - foo => sub { - my ( $self, $c ) = @_; - $c->res->headers->header( 'X-Foo' => 'Bar' ); - } -); +sub foo : Global { + my ( $self, $c ) = @_; + $c->res->headers->header( 'X-Foo' => 'Bar' ); +} + +__PACKAGE__->setup; package main;