construct_instance is obsolated, use construct_instance instead
[gitmo/Mouse.git] / t / 030_roles / failing / 035_anonymous_roles.t
index c4fad90..28bbde2 100644 (file)
@@ -20,7 +20,7 @@ my $class = Mouse::Meta::Class->create('MyItem::Armor::Helmet');
 $role->apply($class);
 # XXX: Mouse::Util::apply_all_roles doesn't cope with references yet
 
-my $visored = $class->construct_instance(is_worn => 0);
+my $visored = $class->new_object(is_worn => 0);
 ok(!$visored->is_worn, "attribute, accessor was consumed");
 $visored->is_worn(1);
 ok($visored->is_worn, "accessor was consumed");