From: Dave Rolsky Date: Fri, 30 Dec 2011 20:58:33 +0000 (-0600) Subject: Fix alias+conflict test to make things a little clearer X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Ftopic%2Frequired-method-bug-fixes;p=gitmo%2FMoose.git Fix alias+conflict test to make things a little clearer --- diff --git a/t/roles/role_conflict_detection.t b/t/roles/role_conflict_detection.t index 7143596..508e8ee 100644 --- a/t/roles/role_conflict_detection.t +++ b/t/roles/role_conflict_detection.t @@ -393,6 +393,7 @@ is(Role::Reality->meta->get_method('twist')->(), requires 'bar'; sub foo {} + sub baz {} } { @@ -449,9 +450,9 @@ is(Role::Reality->meta->get_method('twist')->(), sub bar {} ::is( - ::exception{ with 'AlsoHasFooMeth', { -alias => { bar => 'foo' } } }, + ::exception{ with 'AlsoHasFooMeth', { -alias => { baz => 'foo' } } }, undef, - 'aliasing one of the conflicting methods as part of consuming the role supresses the conflict error' + 'aliasing a method to the conflicting method suppresses the conflict error' ); }