is_deeply(
[ sort $foo_role->get_method_list() ],
- [ 'boo', 'foo' ],
+ [ 'boo', 'foo', 'meta' ],
'... got the right method list');
ok(FooRole->can('foo'), "locally defined methods are still there");
ok($foo_role->has_attribute('bar'), '... FooRole does have the bar attribute');
-is $foo_role->get_attribute('bar')->name, 'bar', '... got the correct description of the bar attribute';
+is $foo_role->get_attribute('bar')->{is}, 'rw', '... got the correct description of the bar attribute';
ok($foo_role->has_attribute('baz'), '... FooRole does have the baz attribute');
is(
- $foo_role->get_attribute('baz')->name,
- 'baz',
+ $foo_role->get_attribute('baz')->{is},
+ 'ro',
'... got the correct description of the baz attribute');
# method modifiers