make all warnings fatal in tests
[gitmo/MooseX-Getopt.git] / t / 009_gld_and_explicit_options.t
index 9fc24f9..2d46662 100644 (file)
@@ -1,12 +1,11 @@
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
-use Test::More tests => 5;
+use Test::More tests => 6;
 use Test::Fatal;
+use Test::NoWarnings 1.04 ':early';
 
-use Test::Requires {
-    'Getopt::Long::Descriptive' => 0.01, # skip all if not installed
-};
+use Getopt::Long::Descriptive;
 
 use_ok('MooseX::Getopt');