From: Dave Rolsky Date: Thu, 9 Apr 2009 00:36:19 +0000 (-0500) Subject: Fix test to actually test what it should be testing X-Git-Tag: 0.75~24 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2cb19e3595733edc53ab6069d043432c24e495f4;p=gitmo%2FMoose.git Fix test to actually test what it should be testing --- diff --git a/t/300_immutable/010_constructor_is_not_moose.t b/t/300_immutable/010_constructor_is_not_moose.t index 8b47463..1288555 100644 --- a/t/300_immutable/010_constructor_is_not_moose.t +++ b/t/300_immutable/010_constructor_is_not_moose.t @@ -46,16 +46,16 @@ is( extends 'NotMoose'; ::stderr_is( - sub { Foo->meta->make_immutable( replace_constructor => 1 ) }, + sub { Bar->meta->make_immutable( replace_constructor => 1 ) }, q{}, 'no warning when replace_constructor is true' ); } -isnt( - Bar->meta->find_method_by_name('new')->body, - Moose::Object->can('new'), - 'Bar->new is not inherited from NotMoose because it was inlined' +is( + Bar->meta->find_method_by_name('new')->package_name, + 'Bar', + 'Bar->new is inlined, and not inherited from NotMoose' ); {