Fix tests generated for controllers generated with --mechanize
[catagits/Catalyst-Devel.git] / share / t / comptest.tt
index 9ac67d6..2c2c087 100644 (file)
@@ -3,12 +3,12 @@ use warnings;
 use Test::More;
 [% IF long_type == 'Controller' %][% IF mech %]
 
-unless (eval q{use Test::WWW::Mechanize::Catalyst '[% name %]'; 1}) {
-    plan skip_all => 'Test::WWW::Mechanize::Catalyst required';
+unless (eval q{use Test::WWW::Mechanize::Catalyst 0.55; 1}) {
+    plan skip_all => 'Test::WWW::Mechanize::Catalyst >= 0.55 required';
     exit 0;
 }
 
-ok( my $mech = Test::WWW::Mechanize::Catalyst->new, 'Created mech object' );
+ok( my $mech = Test::WWW::Mechanize::Catalyst->new(catalyst_app => '[% name %]', 'Created mech object' );
 
 $mech->get_ok( 'http://localhost[% uri %]' );
 [%- ELSE %]