it documented here, or think we missed an important feature, please
send us a patch.
+=head1 Version 0.80
+
+Update test suite for subname change in Class::MOP
+
=head1 Version 0.78
C<use Moose::Exporter;> now imports C<strict> and C<warnings> into packages
use strict;
use warnings;
-use Test::More tests => 16;
+use Test::More tests => 17;
{
'original fq name is Role::Foo::foo' );
}
-is( ClassB->foo, 'ClassB::foo', 'ClassB::foo knows its name' );
+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' );
}
package main;
-use Test::More tests => 2;
+use Test::More tests => 4;
{
- local $TODO = 'for rafl';
+ local $TODO = 'Role composition does not clone methods yet';
is(MyClass1->foo, 'MyClass1::foo',
'method from role has correct name in caller()');
+ is(MyClass2->foo, 'MyClass2::foo',
+ 'method from role has correct name in caller()');
}
-is(MyClass2->foo, 'MyClass2::foo');
+
+isnt(MyClass1->foo, "MyClass2::foo", "role method is not confused with other class" );
+isnt(MyClass2->foo, "MyClass1::foo", "role method is not confused with other class" );