now prepare_action is in Context - fixing test libs (for example for test t/aggregate...
Zbigniew Łukasiak [Tue, 17 Nov 2009 14:54:07 +0000 (14:54 +0000)]
t/lib/TestApp/Context.pm

index 1aa6d7e..e3e8f75 100644 (file)
@@ -51,6 +51,10 @@ sub execute {
     return $c->SUPER::execute(@_);
 }
 
+after prepare_action => sub{
+    my $c = shift;
+    $c->res->header( 'X-Catalyst-Action' => $c->req->action );
+};
 
 1;