sometimes consistency is not a bad thing either.
[catagits/Catalyst-Devel.git] / share / t / comptest.tt
index 00800f8..1e38a12 100644 (file)
@@ -5,23 +5,22 @@ use warnings;
 eval "use Test::WWW::Mechanize::Catalyst '[% name %]'";
 if ($@) {
     plan skip_all => 'Test::WWW::Mechanize::Catalyst required';
-       exit 0;
+    exit 0;
 }
 
 ok( my $mech = Test::WWW::Mechanize::Catalyst->new, 'Created mech object' );
 
 $mech->get_ok( 'http://localhost[% uri %]' );
-[% ELSE %]use Test::More tests => 3;
+[%- ELSE %]use Test::More;
 
-BEGIN { use_ok 'Catalyst::Test', '[% name %]' }
+BEGIN { use_ok 'Catalyst::Test', '[% app %]' }
 BEGIN { use_ok '[% class %]' }
 
 ok( request('[% uri %]')->is_success, 'Request should succeed' );
-[% END %]
-[% ELSE %]use Test::More tests => 1;
+[%- END -%]
+[% ELSE %]use Test::More;
 
 BEGIN { use_ok '[% class %]' }
-[% END %]
+[% END -%]
 
 done_testing();
-1;