Use done_testing in all tests and use Test::Requires
[gitmo/MooseX-Types.git] / t / 20_union_with_string_type.t
index 2b0bdfa..8147f86 100644 (file)
@@ -2,7 +2,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 14;
+use Test::More;
 
 my $exception;
 {
@@ -48,3 +48,5 @@ my $exception;
        Test::More::ok !Test3->check({a=>1}), 'fails wrong ref type';
        Test::More::ok Test3->check($obj), 'Union allows Object';
 }
+
+done_testing();