Subject: | tests t/030_roles/003_apply_role.t do not actually test role application |
The tests for t/030_roles/003_apply_role.t do not actually test the
behavior. Several of the tests do something the following:
dies_ok {
$foo_meta_class->apply_role()
} ,
The test passes, but not for the reasons believed. There is no
apply_role method for Moose::Meta::Class. The method should be
add_role, **I believe**. But when I switch to the add_role method, I
get the following error:
This method (add_role) cannot be called on an immutable instance at
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Class/MOP/Immutable.pm
line 253
Class::MOP::Class::__ANON__::SERIAL::41::add_role('Class::MOP::Class::__ANON__::SERIAL::41=HASH(0x89da9bc)')
called at t/030_roles/003_apply_role.t line 75
I am momentarily stumped and can't look at.
Chris