From: Hans Dieter Pearcey Date: Fri, 12 Oct 2007 02:27:19 +0000 (+0000) Subject: make it clearer why this test case matters X-Git-Tag: 0_27~29 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4ec69f21e8c76f6f86cb90212189307defad19db;p=gitmo%2FMoose.git make it clearer why this test case matters --- diff --git a/t/030_roles/007_roles_and_required_method_edge_cases.t b/t/030_roles/007_roles_and_required_method_edge_cases.t index 304fab1..258e390 100644 --- a/t/030_roles/007_roles_and_required_method_edge_cases.t +++ b/t/030_roles/007_roles_and_required_method_edge_cases.t @@ -259,6 +259,13 @@ method modifier. use Moose; extends 'Bar::Class::Base'; after bar => sub { "o noes" }; + # technically we could run lives_ok here, too, but putting it into a + # grandchild class makes it more obvious why this matters. +} +{ + package Bar::Class::Grandchild; + use Moose; + extends 'Bar::Class::Child'; ::lives_ok { with 'Bar::Role'; } 'required method exists in superclass as non-modifier, so we live';