make all warnings fatal in tests
[gitmo/MooseX-Getopt.git] / t / 003_inferred_option_type.t
index 820d2fc..8953926 100644 (file)
@@ -1,7 +1,8 @@
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
-use Test::More tests => 5;
+use Test::More tests => 6;
+use Test::NoWarnings 1.04 ':early';
 
 BEGIN {
     use_ok('MooseX::Getopt');
@@ -25,7 +26,6 @@ BEGIN {
         isa     => 'ArrayOfInts',
         default => sub { [0] }
     );
-
 }
 
 {