updated absolute/relative tests/classes to global/local.
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Action / Global.pm
diff --git a/t/lib/TestApp/Controller/Action/Global.pm b/t/lib/TestApp/Controller/Action/Global.pm
new file mode 100644 (file)
index 0000000..8bc3008
--- /dev/null
@@ -0,0 +1,21 @@
+package TestApp::Controller::Action::Global;
+
+use strict;
+use base 'TestApp::Controller::Action';
+
+sub action_global_one : Action Absolute {
+    my ( $self, $c ) = @_;
+    $c->forward('TestApp::View::Dump::Request');
+}
+
+sub action_global_two : Action Global {
+    my ( $self, $c ) = @_;
+    $c->forward('TestApp::View::Dump::Request');
+}
+
+sub action_global_three : Action Path('/action_global_three') {
+    my ( $self, $c ) = @_;
+    $c->forward('TestApp::View::Dump::Request');
+}
+
+1;