6 use Test::More tests => 23;
16 use Moose::Util::TypeConstraints;
19 can_ok('Foo', 'meta');
20 isa_ok(Foo->meta, 'Moose::Meta::Class');
22 ok(Foo->meta->has_method('meta'), '... we got the &meta method');
23 ok(Foo->isa('Moose::Object'), '... Foo is automagically a Moose::Object');
26 Foo->meta->has_method()
27 } '... has_method requires an arg';
30 Foo->meta->has_method('')
31 } '... has_method requires an arg';
33 can_ok('Foo', 'does');
35 foreach my $function (qw(
44 ok(!Foo->meta->has_method($function), '... the meta does not treat "' . $function . '" as a method');