[% IF long_type == 'Controller' %][% IF mech %]use Test::More;
eval "use Test::WWW::Mechanize::Catalyst '[% name %]'";
-plan $@
- ? ( skip_all => 'Test::WWW::Mechanize::Catalyst required' )
- : ( tests => 2 );
+if ($@) {
+ plan skip_all => 'Test::WWW::Mechanize::Catalyst required';
+ exit 0;
+}
ok( my $mech = Test::WWW::Mechanize::Catalyst->new, 'Created mech object' );
BEGIN { use_ok '[% class %]' }
[% END %]
+
+done_testing();
+1;