3 [% IF long_type == 'Controller' %][% IF mech %]use Test::More;
5 eval "use Test::WWW::Mechanize::Catalyst '[% app %]'";
7 ? ( skip_all => 'Test::WWW::Mechanize::Catalyst required' )
10 ok( my $mech = Test::WWW::Mechanize::Catalyst->new, 'Created mech object' );
12 $mech->get_ok( 'http://localhost[% uri %]' );
13 [% ELSE %]use Test::More tests => 3;
15 BEGIN { use_ok 'Catalyst::Test', '[% app %]' }
16 BEGIN { use_ok '[% class %]' }
18 ok( request('[% uri %]')->is_success, 'Request should succeed' );
20 [% ELSE %]use Test::More tests => 1;
22 BEGIN { use_ok '[% class %]' }