13 use Moose::Util::TypeConstraints;
16 can_ok('Foo', 'meta');
17 isa_ok(Foo->meta, 'Moose::Meta::Class');
19 ok(Foo->meta->has_method('meta'), '... we got the &meta method');
20 ok(Foo->isa('Moose::Object'), '... Foo is automagically a Moose::Object');
23 Foo->meta->has_method()
24 } '... has_method requires an arg';
26 can_ok('Foo', 'does');
28 foreach my $function (qw(
37 ok(!Foo->meta->has_method($function), '... the meta does not treat "' . $function . '" as a method');
40 foreach my $import (qw(
46 ok(!Moose::Object->can($import), "no namespace pollution in Moose::Object ($import)" );
48 local $TODO = $import eq 'blessed' ? "no automatic namespace cleaning yet" : undef;
49 ok(!Foo->can($import), "no namespace pollution in Moose::Object ($import)" );