use strict;
use warnings;
-use Test::More tests => 8;
+use Test::More;
{
package Ball;
is( Ball->meta->get_method('bounce')->meta->name, $method_class,
"method's package still exists" );
- local $TODO = "method seems to be reinitialized" if !$method_meta;
+ is( Ball->meta->get_method('bounce'), $method_object,
+ 'original method object is preserved' );
is( Ball->meta->get_method('bounce')->meta . '', $original_meta,
"method's metaclass still exists" );
undef $method_meta;
}
+
+done_testing;