3 [% IF long_type == 'Controller' %][% IF mech %]use Test::More;
5 eval "use Test::WWW::Mechanize::Catalyst '[% name %]'";
7 plan skip_all => 'Test::WWW::Mechanize::Catalyst required';
11 ok( my $mech = Test::WWW::Mechanize::Catalyst->new, 'Created mech object' );
13 $mech->get_ok( 'http://localhost[% uri %]' );
14 [%- ELSE %]use Test::More;
16 BEGIN { use_ok 'Catalyst::Test', '[% app %]' }
17 BEGIN { use_ok '[% class %]' }
19 ok( request('[% uri %]')->is_success, 'Request should succeed' );
21 [% ELSE %]use Test::More;
23 BEGIN { use_ok '[% class %]' }