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