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