X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F402-attribute-application.t;h=e4745c5f36240bd6bfa0d53babe19e685cd9cbe4;hb=c9313657717f78bd96f0325c6aa1c93d0b0d41a5;hp=fbb400d8c063d26a434d684e5bddbce15c7269f5;hpb=eab815459cfd4be951f1f44cd656e76169f7a1d6;p=gitmo%2FMouse.git diff --git a/t/402-attribute-application.t b/t/402-attribute-application.t index fbb400d..e4745c5 100644 --- a/t/402-attribute-application.t +++ b/t/402-attribute-application.t @@ -9,13 +9,14 @@ do { use Mouse::Role; has 'attr' => ( + is => 'bare', default => 'Role', ); no Mouse::Role; }; -is_deeply(Role->meta->get_attribute('attr'), {default => 'Role'}); +is(Role->meta->get_attribute('attr')->{default}, 'Role'); do { package Class; @@ -33,6 +34,7 @@ do { use Mouse::Role; has 'attr' => ( + is => 'bare', default => 'Role2', ); @@ -55,6 +57,7 @@ lives_ok { with 'Role'; has attr => ( + is => 'bare', default => 'Class3', ); }; @@ -66,6 +69,7 @@ lives_ok { use Mouse; has attr => ( + is => 'bare', default => 'Class::Parent', ); };