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');
26 my $class = ref( $c->component( $_[0] ) ) || $_[0];
31 if ( $action =~ /->(\w+)$/ ) {
34 elsif ( $action =~ /\/(\w+)$/ ) {
37 elsif ( $action =~ /^(\w+)$/ ) {
42 if ( $class && $method && $method !~ /^_/ ) {
43 my $executed = sprintf( "%s->%s", $class, $method );
44 my @executed = $c->response->headers->header('X-Catalyst-Executed');
45 push @executed, $executed;
46 $c->response->headers->header(
47 'X-Catalyst-Executed' => join ', ',
52 return $c->SUPER::execute(@_);