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%2FChained.pm;h=90b1efed53b49a93b3762a2078f9ff2ddaf5f732;hp=61210dc77392e74481df815e8687472b107be4a2;hb=2f3812528068bc1d9f7840067f0c03d36cd47e6d;hpb=afb82794328ff8da1efc0a4c37f3f3703c262c31 diff --git a/t/lib/TestApp/Controller/Action/Chained.pm b/t/lib/TestApp/Controller/Action/Chained.pm index 61210dc..90b1efe 100644 --- a/t/lib/TestApp/Controller/Action/Chained.pm +++ b/t/lib/TestApp/Controller/Action/Chained.pm @@ -175,6 +175,16 @@ sub cc_b : Chained('cc_base') PathPart('b') CaptureArgs(0) { } sub cc_b_link : Chained('cc_b') PathPart('') CaptureArgs(1) { } sub cc_b_anchor : Chained('cc_b_link') PathPart('anchor.html') Args() { } +# +# Test static paths vs. captures +# + +sub apan : Chained('/') CaptureArgs(0) PathPrefix { } +sub korv : Chained('apan') CaptureArgs(0) PathPart('') { } +sub wurst : Chained('apan') CaptureArgs(1) PathPart('') { } +sub static_end : Chained('korv') Args(0) { } +sub capture_end : Chained('wurst') Args(0) PathPart('') { } + sub end :Private { my ($self, $c) = @_; return if $c->stash->{no_end};