X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Faggregate%2Flive_component_controller_action_index_or_default.t;h=e10d6d22ebaf02bcd25f135aed5cdb10fdbfd62c;hp=fada74b5760646df840c91990f3cb4a1f6a52632;hb=5299fff8fe52a4f4c10698b258984e41a2f6964f;hpb=e43d6fc69a458e8297484a1821b828bcc9997b42 diff --git a/t/aggregate/live_component_controller_action_index_or_default.t b/t/aggregate/live_component_controller_action_index_or_default.t index fada74b..e10d6d2 100644 --- a/t/aggregate/live_component_controller_action_index_or_default.t +++ b/t/aggregate/live_component_controller_action_index_or_default.t @@ -10,7 +10,7 @@ our $iters; BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; } -use Test::More tests => 3*$iters; +use Test::More tests => 6*$iters; use Catalyst::Test 'TestAppIndexDefault'; @@ -27,5 +27,14 @@ else { sub run_tests { is(get('/indexchained'), 'index_chained', ':Chained overrides index'); is(get('/indexprivate'), 'index_private', 'index : Private still works'); + +# test :Path overriding default is(get('/one_arg'), 'path_one_arg', ':Path overrides default'); + is(get('/one_arg/foo/bar'), 'default', 'default still works'); + +# now the same thing with a namespace, and a trailing / on the :Path + is(get('/default/one_arg'), 'default_path_one_arg', + ':Path overrides default'); + is(get('/default/one_arg/foo/bar'), 'default_default', + 'default still works'); }