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=5161b9fe1ae64894a1af600f2ae5071737d3b1d3;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' ); }