make all warnings fatal in tests
[gitmo/MooseX-Getopt.git] / t / 005_strict.t
index 03eaf50..f768d8b 100644 (file)
@@ -1,5 +1,5 @@
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Test::More tests => 11;
 use Test::Fatal;
@@ -10,14 +10,13 @@ BEGIN {
 }
 
 {
-
     package App;
     use Moose;
 
     with 'MooseX::Getopt::Strict';
 
     has 'data' => (
-        metaclass => 'Getopt',
+        traits    => ['Getopt'],
         is        => 'ro',
         isa       => 'Str',
         default   => 'file.dat',
@@ -25,7 +24,7 @@ BEGIN {
     );
 
     has 'cow' => (
-        metaclass   => 'Getopt',
+        traits      => ['Getopt'],
         is          => 'ro',
         isa         => 'Str',
         default     => 'moo',