fixed Test::Requires to require Catalyst::View::TT
[catagits/Catalyst-View-Email.git] / t / 05template.t
index 8f9e5d8..9855fb2 100644 (file)
@@ -3,18 +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 Data::Dumper;
 use lib "$FindBin::Bin/lib";
 
-eval "use Catalyst::View::TT";
-if ( $@ ) {
-    plan skip_all => 'Catalyst::View::TT required for Template tests';
-    exit;
-}
-
 use_ok('Catalyst::Test', 'TestApp');
 
 my $response;