X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flib%2FTestAppDoubleAutoBug.pm;h=82a5e070a27fb870a76f65ee062a004f4de825a1;hp=5c72461b7ca59e00c89aa6416eb866c809f5b3c0;hb=cf013d38de7a842c70c9d237a9ee3c18f0a42948;hpb=7f23827ba42e87b4bf1f52d37534f3229a7f594d diff --git a/t/lib/TestAppDoubleAutoBug.pm b/t/lib/TestAppDoubleAutoBug.pm index 5c72461..82a5e07 100644 --- a/t/lib/TestAppDoubleAutoBug.pm +++ b/t/lib/TestAppDoubleAutoBug.pm @@ -18,7 +18,7 @@ __PACKAGE__->setup; sub execute { my $c = shift; my $class = ref( $c->component( $_[0] ) ) || $_[0]; - my $action = "$_[1]"; + my $action = $_[1]->reverse(); my $method; @@ -44,16 +44,3 @@ sub execute { return $c->SUPER::execute(@_); } - - - -sub auto : Private { - my ( $self, $c ) = @_; - ++$c->stash->{auto_count}; - return 1; -} - -sub default : Private { - my ( $self, $c ) = @_; - $c->res->body( sprintf 'default, auto=%d', $c->stash->{auto_count} ); -}