Redid conversion to Test::Fatal
[gitmo/Moose.git] / t / 010_basics / 001_basic_class_setup.t
index 7d5aaf7..03db813 100644 (file)
@@ -3,9 +3,8 @@
 use strict;
 use warnings;
 
-use Test::More tests => 29;
-use Test::Exception;
-
+use Test::More;
+use Test::Fatal;
 
 
 {
@@ -20,9 +19,9 @@ isa_ok(Foo->meta, 'Moose::Meta::Class');
 ok(Foo->meta->has_method('meta'), '... we got the &meta method');
 ok(Foo->isa('Moose::Object'), '... Foo is automagically a Moose::Object');
 
-dies_ok {
+isnt( exception {
    Foo->meta->has_method()
-} '... has_method requires an arg';
+}, undef, '... has_method requires an arg' );
 
 can_ok('Foo', 'does');
 
@@ -49,3 +48,5 @@ foreach my $import (qw(
     local $TODO = $import eq 'blessed' ? "no automatic namespace cleaning yet" : undef;
     ok(!Foo->can($import), "no namespace pollution in Moose::Object ($import)" );
 }
+
+done_testing;