fixed Test::Requires to require Catalyst::View::TT
[catagits/Catalyst-View-Email.git] / t / 05template.t
index 7b26c3e..9855fb2 100644 (file)
@@ -3,16 +3,13 @@ use warnings;
 
 BEGIN { $ENV{EMAIL_SENDER_TRANSPORT} = 'Test' }
 use Test::More;
-
+use Test::Requires {
+    'Catalyst::View::TT' => '0.31',
+};
 use Email::Sender::Simple;
 use FindBin;
 use lib "$FindBin::Bin/lib";
 
-eval "use Catalyst::View::TT";
-if ( $@ ) {
-    plan skip_all => 'Catalyst::View::TT required for Template tests';
-}
-
 use_ok('Catalyst::Test', 'TestApp');
 
 my $response;