X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F030_roles%2F002_role.t;h=4deb2ecce5d39410a30ac2509d27f970460efc4d;hb=11d415286701d3b51e517cb6826138808967cb89;hp=afbe34e37bca1d49302c0bb166c75c6f597c1972;hpb=6719984210754e8d012ae678536f194c35000823;p=gitmo%2FMouse.git diff --git a/t/030_roles/002_role.t b/t/030_roles/002_role.t index afbe34e..4deb2ec 100755 --- a/t/030_roles/002_role.t +++ b/t/030_roles/002_role.t @@ -85,16 +85,13 @@ is_deeply( ok($foo_role->has_attribute('bar'), '... FooRole does have the bar attribute'); -is_deeply( - $foo_role->get_attribute('bar'), - { is => 'rw', isa => 'Foo' }, - '... got the correct description of the bar attribute'); +is $foo_role->get_attribute('bar')->name, 'bar', '... got the correct description of the bar attribute'; ok($foo_role->has_attribute('baz'), '... FooRole does have the baz attribute'); -is_deeply( - $foo_role->get_attribute('baz'), - { is => 'ro' }, +is( + $foo_role->get_attribute('baz')->name, + 'baz', '... got the correct description of the baz attribute'); # method modifiers