auto/forward/detach tests for Chained
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Action / Chained / Auto / Foo.pm
diff --git a/t/lib/TestApp/Controller/Action/Chained/Auto/Foo.pm b/t/lib/TestApp/Controller/Action/Chained/Auto/Foo.pm
new file mode 100644 (file)
index 0000000..cad104e
--- /dev/null
@@ -0,0 +1,16 @@
+package TestApp::Controller::Action::Chained::Auto::Foo;
+use warnings;
+use strict;
+
+use base qw( Catalyst::Controller );
+
+#
+#   Test chain reaction if auto action returns 1.
+#
+sub auto        : Private { 1 }
+
+sub fooend      : Chained('.') Args(1) { }
+
+sub crossend    : Chained('/action/chained/auto/bar/crossloose') Args(1) { }
+
+1;