From: Florian Ragwitz Date: Sat, 6 Feb 2010 22:03:58 +0000 (+0100) Subject: We stopped subnaming role methods when being composed. Fix a TODO tests that expects... X-Git-Tag: 0.97~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7bc685b67718d767a1bcc047811f6e24193b7781;p=gitmo%2FMoose.git We stopped subnaming role methods when being composed. Fix a TODO tests that expects we still do that. --- diff --git a/t/030_roles/032_roles_and_method_cloning.t b/t/030_roles/032_roles_and_method_cloning.t index d697f37..2b52bca 100644 --- a/t/030_roles/032_roles_and_method_cloning.t +++ b/t/030_roles/032_roles_and_method_cloning.t @@ -73,11 +73,7 @@ use Test::More; isnt( ClassA->foo, "ClassB::foo", "ClassA::foo is not confused with ClassB::foo"); -{ - local $TODO = - "multiply-consumed roles' subs take on their most recently used name"; - is( ClassB->foo, 'ClassB::foo', 'ClassB::foo knows its name' ); - is( ClassA->foo, 'ClassA::foo', 'ClassA::foo knows its name' ); -} +is( ClassB->foo, 'Role::Foo::foo', 'ClassB::foo knows its name' ); +is( ClassA->foo, 'Role::Foo::foo', 'ClassA::foo knows its name' ); done_testing;