X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FAction%2FForward.pm;h=c6be7314417b1967bb645a0f76aced9ec54a615c;hb=4082e67814e85bc9820e56eb38e5e21511c0a5f8;hp=f966898ae84dd28d223dc430458777838f50e0e3;hpb=66741f94ac93b7ba0989db3556d0e3fe36c1be87;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestApp/Controller/Action/Forward.pm b/t/lib/TestApp/Controller/Action/Forward.pm index f966898..c6be731 100644 --- a/t/lib/TestApp/Controller/Action/Forward.pm +++ b/t/lib/TestApp/Controller/Action/Forward.pm @@ -15,7 +15,7 @@ sub two : Private { sub three : Local { my ( $self, $c ) = @_; - $c->forward($self, 'four'); + $c->forward( $self, 'four' ); } sub four : Private { @@ -31,7 +31,7 @@ sub five : Local { sub jojo : Local { my ( $self, $c ) = @_; $c->forward('one'); - $c->forward($c->controller('Action::Forward'), 'three'); + $c->forward( $c->controller('Action::Forward'), 'three' ); } sub inheritance : Local { @@ -65,19 +65,24 @@ sub args : Local { sub args_embed_relative : Local { my ( $self, $c ) = @_; - $c->forward( 'embed/ok' ); + $c->forward('embed/ok'); } sub args_embed_absolute : Local { my ( $self, $c ) = @_; - $c->forward( '/action/forward/embed/ok' ); + $c->forward('/action/forward/embed/ok'); } sub embed : Local { my ( $self, $c, $ok ) = @_; - + $ok ||= 'not ok'; - $c->res->body( $ok ); + $c->res->body($ok); +} + +sub class_forward_test_action : Local { + my ( $self, $c ) = @_; + $c->forward(qw/TestApp class_forward_test_method/); } 1;