construct_instance is obsolated, use construct_instance instead
Tokuhiro Matsuno [Tue, 9 Jun 2009 06:33:07 +0000 (15:33 +0900)]
t/030_roles/failing/034_create_role.t
t/030_roles/failing/035_anonymous_roles.t

index e454dc3..25645d7 100644 (file)
@@ -21,7 +21,7 @@ my $class = Mouse::Meta::Class->create('MyItem::Armor::Helmet' =>
     roles => ['MyItem::Role::Equipment'],
 );
 
-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");
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");