make all warnings fatal in tests
[gitmo/MooseX-Getopt.git] / t / 006_metaclass_traits.t
index 5ac0391..848fe53 100644 (file)
@@ -1,8 +1,9 @@
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
-use Test::More tests => 69;
+use Test::More tests => 70;
 use Test::Moose;
+use Test::NoWarnings 1.04 ':early';
 
 BEGIN {
     use_ok('MooseX::Getopt');
@@ -75,7 +76,6 @@ BEGIN {
         default   => 832,
         cmd_flag  => 'p',
     );
-
 }
 
 foreach my $attr_name (qw(data cow horse _private_stuff_cmdline)) {