7 use lib "$FindBin::Bin/../lib";
11 BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; }
13 use Test::More tests => 6*$iters;
15 use Catalyst::Test 'TestAppIndexDefault';
17 if ( $ENV{CAT_BENCHMARK} ) {
19 Benchmark::timethis( $iters, \&run_tests );
28 is(get('/indexchained'), 'index_chained', ':Chained overrides index');
29 is(get('/indexprivate'), 'index_private', 'index : Private still works');
31 # test :Path overriding default
32 is(get('/one_arg'), 'path_one_arg', ':Path overrides default');
33 is(get('/one_arg/foo/bar'), 'default', 'default still works');
35 # now the same thing with a namespace, and a trailing / on the :Path
36 is(get('/default/one_arg'), 'default_path_one_arg',
37 ':Path overrides default');
38 is(get('/default/one_arg/foo/bar'), 'default_default',
39 'default still works');