use strict;
use warnings;
-use Test::More tests => 20;
+use Test::More tests => 23;
use Test::Exception;
BEGIN {
{
package Foo;
use Moose;
+ use Moose::Util::TypeConstraints;
}
can_ok('Foo', 'meta');
ok(Foo->meta->has_method('meta'), '... we got the &meta method');
ok(Foo->isa('Moose::Object'), '... Foo is automagically a Moose::Object');
+dies_ok {
+ Foo->meta->has_method()
+} '... has_method requires an arg';
+
+dies_ok {
+ Foo->meta->has_method('')
+} '... has_method requires an arg';
+
+can_ok('Foo', 'does');
+
foreach my $function (qw(
extends
has