Merge branch 'master' into gsoc_breadboard
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Action / Forward.pm
index c6be731..1d3970d 100644 (file)
@@ -57,6 +57,11 @@ sub with_method_and_args : Local {
     $c->res->body( $c->req->args->[0] );
 }
 
+sub to_action_object : Local {
+    my ( $self, $c ) = @_;
+    $c->forward($self->action_for('embed'), [qw/mtfnpy/]);
+}
+
 sub args : Local {
     my ( $self, $c, $val ) = @_;
     die "Expected argument 'new', got '$val'" unless $val eq 'new';
@@ -82,7 +87,12 @@ sub embed : Local {
 
 sub class_forward_test_action : Local {
     my ( $self, $c ) = @_;
-    $c->forward(qw/TestApp class_forward_test_method/);
+    $c->forward(qw/TestApp::Controller::Root class_forward_test_method/);
+}
+
+sub forward_to_uri_check : Local {
+    my ( $self, $c ) = @_;
+    $c->forward( 'Action::ForwardTo', 'uri_check' );
 }
 
 1;