Standardize use of Test::Exception before converting to Test::Fatal
[gitmo/Moose.git] / t / 050_metaclasses / 013_metaclass_traits.t
index b47cea4..dcab7bd 100644 (file)
@@ -167,8 +167,8 @@ is( Role::Foo->meta()->simple(), 5,
 
 {
     require Moose::Util::TypeConstraints;
-    dies_ok( sub { Moose::Util::TypeConstraints->import( -traits => 'My::SimpleTrait' ) },
-             'cannot provide -traits to an exporting module that does not init_meta' );
+    dies_ok { Moose::Util::TypeConstraints->import( -traits => 'My::SimpleTrait' ) }
+        'cannot provide -traits to an exporting module that does not init_meta';
     like( $@, qr/does not have an init_meta/,
           '... and error provides a useful explanation' );
 }