aboutsummaryrefslogtreecommitdiffstats
path: root/t/02-mx-m-s.t
diff options
context:
space:
mode:
Diffstat (limited to 't/02-mx-m-s.t')
-rw-r--r--t/02-mx-m-s.t12
1 files changed, 4 insertions, 8 deletions
diff --git a/t/02-mx-m-s.t b/t/02-mx-m-s.t
index e79bac8..083535b 100644
--- a/t/02-mx-m-s.t
+++ b/t/02-mx-m-s.t
@@ -2,15 +2,11 @@
use strict;
use warnings;
-use Test::More;
+use Test::More tests => 3;
-BEGIN {
- if (eval { require MooseX::Method::Signatures }) {
- plan tests => 3;
- } else {
- plan skip_all => 'This test needs MooseX::Method::Signatures';
- }
-}
+use Test::Requires {
+ 'MooseX::Method::Signatures' => 0.01,
+};
use Test::Exception;
use Test::NoWarnings;