5 use lib "$FindBin::Bin/../lib";
9 BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; }
12 use Catalyst::Test 'TestAppOneView';
14 plan 'skip_all' if ( $ENV{CATALYST_SERVER} );
16 plan tests => 3*$iters;
18 if ( $ENV{CAT_BENCHMARK} ) {
20 Benchmark::timethis( $iters, \&run_tests );
30 is(get('/view_by_name?view=Dummy'), 'AClass',
31 '$c->view("name") returns blessed instance');
32 is(get('/view_by_regex?view=Dummy'), 'AClass',
33 '$c->view(qr/name/) returns blessed instance');
34 is(get('/view_no_args'), 'AClass',
35 '$c->view() returns blessed instance');