8 ok( Moo::Object->can('meta'), 'Moo::Object can meta');
9 is( exception { Moo::Object->meta->can('can') } , undef, "Moo::Object->meta->can doesn't explode" );
13 use base 'Moo::Object';
17 ok( Example->can('meta'), 'Example can meta');
18 is( exception { Example->meta->can('can') } , undef, "Example->meta->can doesn't explode" );
20 # Haarg++ noting that previously, this *also* would have died due to its absence from %Moo::Makers;
25 has 'attr' => ( is => ro =>, );
27 $INC{'Example_2.pm'} = 1;
34 ok( Example_2->can('meta'), 'Example_2 can meta') and do {
35 return unless ok( Example_2->meta->can('get_all_attributes'), 'Example_2 meta can get_all_attributes' );
36 my (@attributes) = Example_2->meta->get_all_attributes;
37 is( scalar @attributes, 1, 'Has one attribute' );
40 ok( Example_3->can('meta'), 'Example_3 can meta') and do {
41 return unless is( exception { Example_3->meta->can('can') } , undef, "Example_3->meta->can doesn't explode" );
42 return unless ok( Example_3->meta->can('get_all_attributes'), 'Example_3 meta can get_all_attributes' );
43 my (@attributes) = Example_3->meta->get_all_attributes;
44 is( scalar @attributes, 1, 'Has one attribute' );