prevent actions named index from registering as an index dispatchtype if they can...
[catagits/Catalyst-Runtime.git] / t / aggregate / live_component_controller_action_named_index.t
CommitLineData
2ee0056e 1#!perl
2
3use strict;
4use warnings;
5
6use FindBin;
7use lib "$FindBin::Bin/../lib";
8
9our $iters;
10
11BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; }
12
13use Test::More tests => 1*$iters;
14
1315d253 15use Catalyst::Test 'TestAppIndexActionName';
2ee0056e 16
17if ( $ENV{CAT_BENCHMARK} ) {
18 require Benchmark;
19 Benchmark::timethis( $iters, \&run_tests );
20}
21else {
22 for ( 1 .. $iters ) {
23 run_tests();
24 }
25}
26
27sub run_tests {
28 is(get('/indexchained'), 'index_chained', ':Chained overrides index');
29}