use strict;
use warnings;
-use Test::More tests => 29;
-use Test::Exception;
-
+use Test::More;
+use Test::Fatal;
{
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');
local $TODO = $import eq 'blessed' ? "no automatic namespace cleaning yet" : undef;
ok(!Foo->can($import), "no namespace pollution in Moose::Object ($import)" );
}
+
+done_testing;