no :PathPart -> :PathPart('subname')
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Action / ChildOf / Foo.pm
index ffba0b3..d75f45a 100644 (file)
@@ -5,6 +5,24 @@ use warnings;
 
 use base qw/Catalyst::Controller/;
 
-sub spoon :PathPart :ChildOf('') :Args(0) { }
+#
+#   Child of current namespace
+#
+sub spoon :ChildOf('') :Args(0) { }
+
+#
+#   Root for a action in a "parent" controller
+#
+sub higher_root :PathPart('childof/higher_root') :ChildOf('/') :Captures(1) { }
+
+#
+#   Parent controller -> this subcontroller -> parent controller test
+#
+sub pcp2 :ChildOf('/action/childof/pcp1') :Captures(1) { }
+
+#
+#   Controllers not in parent/child relation. This tests the end.
+#
+sub cross2 :PathPart('end') :ChildOf('/action/childof/bar/cross1') :Args(1) { }
 
 1;