with [Git::GatherDir], no need for a MANIFEST.SKIP
[gitmo/MooseX-AlwaysCoerce.git] / t / 02-mx-m-s.t
index c79c947..9b36d77 100644 (file)
@@ -2,16 +2,14 @@
 use strict;
 use warnings;
 
-use Test::More;
-use Test::Exception;
-
-BEGIN {
-    if (eval { require MooseX::Method::Signatures }) {
-        plan tests => 2;
-    } else {
-        plan skip_all => 'This test needs MooseX::Method::Signatures';
-    }
-}
+use Test::More tests => 3;
+
+use Test::Requires {
+    'MooseX::Method::Signatures' => 0.01,
+};
+
+use Test::Fatal;
+use Test::NoWarnings;
 
 {
     package MyClass;
@@ -37,7 +35,7 @@ ok( (my $instance = MyClass->new), 'instance' );
 TODO: {
     local $TODO = 'need rafl to help with implementation';
 
-    lives_and {
+    is( exception {
         is $instance->foo(foo => "text", bar => 42), '4 42';
-    } 'method called with coerced and uncoerced parameters';
+    }, undef, 'method called with coerced and uncoerced parameters' );
 }