make all warnings fatal in tests
[gitmo/MooseX-Getopt.git] / t / 007_nogetopt_trait.t
index 341173c..22f27cd 100644 (file)
@@ -1,8 +1,9 @@
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
-use Test::More tests => 9;
+use Test::More tests => 10;
 use Test::Fatal;
+use Test::NoWarnings 1.04 ':early';
 
 BEGIN {
     use_ok('MooseX::Getopt');
@@ -76,7 +77,6 @@ BEGIN {
         default   => 832,
         cmd_flag  => 'p',
     );
-
 }
 
 {