X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FAction%2FChildOf.pm;h=ba6e5d2c8fe44b0cd5ec59f813b765159dd1ac3a;hp=5f91d884b05366804396dee6ecae1a889116f8e5;hb=09461385e3f0f62cbf3a95a71d00f71e1a42ca75;hpb=47f9968d8f98b55d7f1620ade066fcf52feeb42d diff --git a/t/lib/TestApp/Controller/Action/ChildOf.pm b/t/lib/TestApp/Controller/Action/ChildOf.pm index 5f91d88..ba6e5d2 100644 --- a/t/lib/TestApp/Controller/Action/ChildOf.pm +++ b/t/lib/TestApp/Controller/Action/ChildOf.pm @@ -22,8 +22,8 @@ sub endpoint2 :PathPart('end2') :ChildOf('/action/childof/foo2') :Args(2) { } # # Relative specification of parent action # -sub bar :PathPart('childof/bar') :ChildOf('/') { } -sub finale :ChildOf('bar') :Args { } +sub bar :PathPart('childof/bar') :ChildOf('/') :Captures(0) { } +sub finale :PathPart('') :ChildOf('bar') :Args { } # # three chain with concurrent endpoints @@ -49,7 +49,7 @@ sub higher_root :PathPart('bar') :ChildOf('/action/childof/foo/higher_root') :Ar # Controller -> subcontroller -> controller # sub pcp1 :PathPart('childof/pcp1') :ChildOf('/') :Captures(1) { } -sub pcp3 :PathPart :ChildOf('/action/childof/foo/pcp2') :Args(1) { } +sub pcp3 :ChildOf('/action/childof/foo/pcp2') :Args(1) { } # # Dispatch on capture number