From: Jesse Luehrs Date: Mon, 27 Sep 2010 07:39:03 +0000 (-0500) Subject: no, actually, we do require this to work/: X-Git-Tag: 1.15~39 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7df0ec56f9cdbde09d688099a08b3e38a654d535;p=gitmo%2FMoose.git no, actually, we do require this to work/: --- diff --git a/t/050_metaclasses/015_metarole.t b/t/050_metaclasses/015_metarole.t index b961bb1..6d80c50 100644 --- a/t/050_metaclasses/015_metarole.t +++ b/t/050_metaclasses/015_metarole.t @@ -98,10 +98,6 @@ use Moose::Util::MetaRole; My::Class->meta()->add_after_method_modifier( 'bar' => sub { 'bar' } ); is( My::Class->meta()->get_method('bar')->foo(), 10, '... call foo() on a wrapped method metaclass object' ); - # so that it doesn't break on reinitialization, since it's a - # Class::MOP::Method::Wrapped object, which isn't a Moose::Meta::Method - # object. Someday we'll fix this... - My::Class->meta()->remove_method('bar'); } { diff --git a/t/050_metaclasses/050_metarole_backcompat.t b/t/050_metaclasses/050_metarole_backcompat.t index bafc687..2ded6e4 100644 --- a/t/050_metaclasses/050_metarole_backcompat.t +++ b/t/050_metaclasses/050_metarole_backcompat.t @@ -105,10 +105,6 @@ use Moose::Util::MetaRole; My::Class->meta()->add_after_method_modifier( 'bar' => sub { 'bar' } ); is( My::Class->meta()->get_method('bar')->foo(), 10, '... call foo() on a wrapped method metaclass object' ); - # so that it doesn't break on reinitialization, since it's a - # Class::MOP::Method::Wrapped object, which isn't a Moose::Meta::Method - # object. Someday we'll fix this... - My::Class->meta()->remove_method('bar'); } {