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