use new_object instead of construct_instance in a few tests
Dave Rolsky [Sun, 5 Apr 2009 21:14:17 +0000 (16:14 -0500)]
t/030_roles/034_create_role.t
t/030_roles/035_anonymous_roles.t

index 089b8f8..8c1eb4e 100644 (file)
@@ -21,7 +21,7 @@ my $class = Moose::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 ffedc29..75cd304 100644 (file)
@@ -20,7 +20,7 @@ my $class = Moose::Meta::Class->create('MyItem::Armor::Helmet');
 $role->apply($class);
 # XXX: Moose::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");