bump version to 0.25
[gitmo/MooseX-Types.git] / t / 14_compatibility-sub-exporter.t
index f220be3..04a233d 100644 (file)
@@ -2,18 +2,16 @@ BEGIN {
        use strict;
        use warnings;
        use Test::More;
-    use Test::Exception;
     use FindBin;
     use lib "$FindBin::Bin/lib";   
     
-    eval "use Sub::Exporter";
-    plan $@
-        ? ( skip_all => "Tests require Sub::Exporter" )
-        : ( tests => 3 );
+    use Test::Requires { 'Sub::Exporter' => '0' };
 }
 
 use SubExporterCompatibility qw(MyStr something);
        
 ok MyStr->check('aaa'), "Correctly passed";
 ok !MyStr->check([1]), "Correctly fails";
-ok something(), "Found the something method";
\ No newline at end of file
+ok something(), "Found the something method";
+
+done_testing;