6 use Test::More tests => 9;
8 use Scalar::Util 'blessed';
33 ok(!$obj->can( 'talk' ), "... the role is not composed yet");
34 ok(!$obj->does('Dog'), '... we do not do any roles yet');
38 } '... and setting the accessor fails (not a Dog yet)';
40 Dog->meta->apply($obj);
42 ok($obj->does('Dog'), '... we now do the Bark role');
43 ok($obj->can('talk'), "... the role is now composed at the object level");
45 is($obj->talk, 'woof', '... got the right return value for the newly composed method');
49 } '... and setting the accessor is okay';