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%2FParentChain.pm;h=69614d5858c8e7220bf211cd50a4047dfe0048f5;hp=ec72a38a44c57ae51a8d5ce5165c09c93abe7f0c;hb=2f3812528068bc1d9f7840067f0c03d36cd47e6d;hpb=afb82794328ff8da1efc0a4c37f3f3703c262c31 diff --git a/t/lib/TestApp/Controller/Action/Chained/ParentChain.pm b/t/lib/TestApp/Controller/Action/Chained/ParentChain.pm index ec72a38..69614d5 100644 --- a/t/lib/TestApp/Controller/Action/Chained/ParentChain.pm +++ b/t/lib/TestApp/Controller/Action/Chained/ParentChain.pm @@ -10,4 +10,16 @@ use base qw/ Catalyst::Controller /; # sub child :Chained('.') :Args(1) { } +# Should be at /chained/rootdef/*/chained_rel/*/* +sub chained_rel :Chained('../one') Args(2) { +} + +# Should chain to loose in parent namespace - i.e. at /chained/loose/*/loose/*/* +sub loose : ChainedParent Args(2) { +} + +# Should be at /chained/cross/*/up_down/* +sub up_down : Chained('../bar/cross1') Args(1) { +} + 1;