2 # This is automatically generated by author/import-moose-test.pl.
3 # DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
4 use t::lib::MooseCompat;
11 use Scalar::Util 'blessed';
33 return bless {}, shift;
43 ok(!$bar->can( 'talk' ), "... the role is not composed yet");
47 } '... and setting the accessor fails (not a Dog yet)';
49 Dog->meta->apply($bar);
51 ok($bar->can('talk'), "... the role is now composed at the object level");
53 is($bar->talk, 'woof', '... got the right return value for the newly composed method');
57 } '... and setting the accessor is okay';