Added Relative.pm
[catagits/Catalyst-Runtime.git] / t / live / lib / TestApp / Controller / Action / Relative.pm
diff --git a/t/live/lib/TestApp/Controller/Action/Relative.pm b/t/live/lib/TestApp/Controller/Action/Relative.pm
new file mode 100644 (file)
index 0000000..84af0fc
--- /dev/null
@@ -0,0 +1,16 @@
+package TestApp::Controller::Action::Relative;
+
+use strict;
+use base 'TestApp::Controller::Action';
+
+sub relative : Local {
+    my ( $self, $c ) = @_;
+    $c->forward('/action/forward/one');
+}
+
+sub relative_two : Local {
+    my ( $self, $c ) = @_;
+    $c->forward( 'TestApp::Controller::Action::Forward', 'one' );
+}
+
+1;