6 use Test::More tests => 46;
9 my @moose_exports = qw(
25 can_ok('Foo', $_) for @moose_exports;
32 ok(!Foo->can($_), '... Foo can no longer do ' . $_) for @moose_exports;
34 # and check the type constraints as well
36 my @moose_type_constraint_exports = qw(
37 type subtype as where message
46 use Moose::Util::TypeConstraints;
49 can_ok('Bar', $_) for @moose_type_constraint_exports;
53 no Moose::Util::TypeConstraints;
56 ok(!Bar->can($_), '... Bar can no longer do ' . $_) for @moose_type_constraint_exports;