More tests for ChildOf
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Action / ChildOf / Bar.pm
diff --git a/t/lib/TestApp/Controller/Action/ChildOf/Bar.pm b/t/lib/TestApp/Controller/Action/ChildOf/Bar.pm
new file mode 100644 (file)
index 0000000..f83a882
--- /dev/null
@@ -0,0 +1,14 @@
+package TestApp::Controller::Action::ChildOf::Bar;
+
+use strict;
+use warnings;
+
+use base qw/Catalyst::Controller/;
+
+#
+#   Redispatching between controllers that are not in a parent/child
+#   relation. This is the root.
+#
+sub cross1 :PathPart('childof/cross') :Captures(1) :ChildOf('/') { }
+
+1;