X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fmoose-does-moo-role.t;h=163908cab4d96965a0b5116a293d38b6dc18e574;hb=7b27f050d312c5659639ea4f71fd3a39363d9b6f;hp=e9c89db31b77ccda244824aea756a293bb273337;hpb=53c748970ae4ae86d8e215b9e46b93b7ac024536;p=gitmo%2FMoo.git diff --git a/xt/moose-does-moo-role.t b/xt/moose-does-moo-role.t index e9c89db..163908c 100644 --- a/xt/moose-does-moo-role.t +++ b/xt/moose-does-moo-role.t @@ -43,15 +43,12 @@ use Moo::HandleMoose; for my $parent (qw(MooseParent MooParent)) { for my $child (qw(MooRoledMooClass MooRoledMooseClass)) { - lives_and { - my $o = $parent->new( - e => $child->new(), - ); - ok( $o->e->does("MooParentRole"), "$child does parent MooRole" ); - can_ok( $o->e, "role_method" ); - local $TODO = "multi-level roles are broken with moose" if $child eq "MooRoledMooseClass"; - can_ok( $o->e, "parent_role_method" ); - } "$parent instantiated with a $child delegate that does a MooRole"; + my $o = $parent->new( + e => $child->new(), + ); + ok( $o->e->does("MooParentRole"), "$child does parent MooRole" ); + can_ok( $o->e, "role_method" ); + can_ok( $o->e, "parent_role_method" ); } }