6 use Test::More tests => 8;
8 use Scalar::Util 'blessed';
34 return bless {}, shift;
44 ok(!$bar->can( 'talk' ), "... the role is not composed yet");
48 } '... and setting the accessor fails (not a Dog yet)';
50 Dog->meta->apply($bar);
52 ok($bar->can('talk'), "... the role is now composed at the object level");
54 is($bar->talk, 'woof', '... got the right return value for the newly composed method');
58 } '... and setting the accessor is okay';