5 use lib "$FindBin::Bin/../lib";
9 BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; }
12 use Catalyst::Test 'TestAppIndexDefault';
14 plan 'skip_all' if ( $ENV{CATALYST_SERVER} );
16 plan tests => 6*$iters;
18 if ( $ENV{CAT_BENCHMARK} ) {
20 Benchmark::timethis( $iters, \&run_tests );
29 is(get('/indexchained'), 'index_chained', ':Chained overrides index');
30 is(get('/indexprivate'), 'index_private', 'index : Private still works');
32 # test :Path overriding default
33 is(get('/one_arg'), 'path_one_arg', ':Path overrides default');
34 is(get('/one_arg/foo/bar'), 'default', 'default still works');
36 # now the same thing with a namespace, and a trailing / on the :Path
37 is(get('/default/one_arg'), 'default_path_one_arg',
38 ':Path overrides default');
39 is(get('/default/one_arg/foo/bar'), 'default_default',
40 'default still works');