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=9e6a93fa3444bd9fba7edfdfee0a5dfa5dd5bc67;hp=18804afb9e38ab16522178e2ec5668f115218a56;hb=8b13f357b71297872a61f142ae62c2e60fda304d;hpb=a1a8d97d78aa20cea4fd5b7ffb22e5255f817e0c diff --git a/t/lib/TestApp/Controller/Action/Chained.pm b/t/lib/TestApp/Controller/Action/Chained.pm index 18804af..9e6a93f 100644 --- a/t/lib/TestApp/Controller/Action/Chained.pm +++ b/t/lib/TestApp/Controller/Action/Chained.pm @@ -141,6 +141,16 @@ sub chain_dt_b :Chained('chain_dt_a') :PathPart('end') :Args(1) { } # sub fw_dt_target :Private { } +# +# Test multiple chained actions with no captures +# +sub empty_chain_a : Chained('/') PathPart('chained/empty') CaptureArgs(0) { } +sub empty_chain_b : Chained('empty_chain_a') PathPart('') CaptureArgs(0) { } +sub empty_chain_c : Chained('empty_chain_b') PathPart('') CaptureArgs(0) { } +sub empty_chain_d : Chained('empty_chain_c') PathPart('') CaptureArgs(1) { } +sub empty_chain_e : Chained('empty_chain_d') PathPart('') CaptureArgs(0) { } +sub empty_chain_f : Chained('empty_chain_e') PathPart('') Args(1) { } + sub end :Private { my ($self, $c) = @_; my $out = join('; ', map { join(', ', @$_) }