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