8 plan skip_all => "only relevant for Moose 2.0"
9 if Moose->VERSION < 1.9900;
14 use MooseX::UndefTolerant;
19 predicate => 'has_foo',
39 with 'Foo::Role', 'Bar::Role';
44 is(exception { $foo = Foo->new(foo => undef) }, undef,
45 "can set to undef in constructor");
46 ok(!$foo->has_foo, "role attribute isn't set");
49 is(exception { $bar = Bar->new(foo => undef) }, undef,
50 "can set to undef in constructor");
51 ok(!$bar->has_foo, "role attribute isn't set");