$type_constraint = $options{isa};
}
else {
- # FIXME this causes a failing test, not sure it should
- # $type_constraint = Moose::Util::TypeConstraints::find_or_create_isa_type_constraint($options{isa});
- $type_constraint = Moose::Util::TypeConstraints::find_or_parse_type_constraint($options{isa});
+ $type_constraint = Moose::Util::TypeConstraints::find_or_create_isa_type_constraint($options{isa});
(defined $type_constraint)
|| confess "Could not find the type constraint '" . $options{isa} . "'";
}
$type_constraint = $options{does};
}
else {
- # FIXME see above
- # $type_constraint = Moose::Util::TypeConstraints::find_or_create_does_type_constraint($options{does});
- $type_constraint = Moose::Util::TypeConstraints::find_or_parse_type_constraint($options{does});
+ $type_constraint = Moose::Util::TypeConstraints::find_or_create_does_type_constraint($options{does});
(defined $type_constraint)
|| confess "Could not find the type constraint '" . $options{does} . "'";
}
use strict;
use warnings;
-use Test::More tests => 84;
+use Test::More tests => 83;
use Test::Exception;
BEGIN {
::dies_ok {
has '+other_fail' => (weak_ref => 1);
} '... cannot create an attribute with an illegal option';
- ::dies_ok {
- has '+other_fail' => (isa => 'WangDoodle');
- } '... cannot create an attribute with a non-existent type';
-
}
my $foo = Foo->new;