X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FAction%2FChained.pm;fp=t%2Flib%2FTestApp%2FController%2FAction%2FChained.pm;h=18804afb9e38ab16522178e2ec5668f115218a56;hb=b7ce908fc5c404dcbc480c7ecf9a275b92fcc26f;hp=d93827de12608f15469e55a287378e91c00420e9;hpb=1c34f703cbd82cddceea95593001a579e1d5f646;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestApp/Controller/Action/Chained.pm b/t/lib/TestApp/Controller/Action/Chained.pm index d93827d..18804af 100644 --- a/t/lib/TestApp/Controller/Action/Chained.pm +++ b/t/lib/TestApp/Controller/Action/Chained.pm @@ -71,6 +71,7 @@ sub priority_a1 :PathPart('chained/priority_a') :Chained('/') :Args { } sub priority_a2 :PathPart('chained/priority_a') :Chained('/') :CaptureArgs(1) { } sub priority_a2_end :PathPart('end') :Chained('priority_a2') :Args(1) { } + # # Priority: Fixed args vs. chained actions # @@ -79,6 +80,14 @@ sub priority_b2 :PathPart('chained/priority_b') :Chained('/') :CaptureArgs(1) { sub priority_b2_end :PathPart('end') :Chained('priority_b2') :Args(1) { } # +# Priority: With no Args() +# +sub priority_c1 :PathPart('chained/priority_c') :Chained('/') :CaptureArgs(1) { } +sub priority_c2 :PathPart('') :Chained('priority_c1') { } +sub priority_c2_xyz :PathPart('xyz') :Chained('priority_c1') { } + + +# # Optional specification of :Args in endpoint # sub opt_args :PathPart('chained/opt_args') :Chained('/') { }