4 use Catalyst qw/Test::Errors Test::Headers Test::Plugin/;
9 TestApp->config( name => 'TestApp', root => '/some/dir' );
13 sub global_action : Private {
14 my ( $self, $c ) = @_;
15 $c->forward('TestApp::View::Dump::Request');
20 my $class = ref( $c->component( $_[0] ) ) || $_[0];
25 if ( $action =~ /->(\w+)$/ ) {
28 elsif ( $action =~ /\/(\w+)$/ ) {
32 if ( $class && $method ) {
33 my $executed = sprintf( "%s->%s", $class, $method );
34 my @executed = $c->response->headers->header('X-Catalyst-Executed');
35 push @executed, $executed;
36 $c->response->headers->header(
37 'X-Catalyst-Executed' => join ', ',
42 return $c->SUPER::execute(@_);