Redid conversion to Test::Fatal
[gitmo/Moose.git] / t / 020_attributes / 019_attribute_lazy_initializer.t
index 06f631f..80e4e0b 100644 (file)
@@ -3,9 +3,8 @@
 use strict;
 use warnings;
 
-use Test::More tests => 23;
-use Test::Exception;
-
+use Test::More;
+use Test::Fatal;
 
 
 {
@@ -144,7 +143,8 @@ use Test::Exception;
     __PACKAGE__->meta->make_immutable;
 }
 
-dies_ok {
+isnt( exception {
     Fail::Bar->new(foo => 10)
-} '... this fails, because initializer returns a bad type';
+}, undef, '... this fails, because initializer returns a bad type' );
 
+done_testing;