From: Dave Rolsky Date: Sun, 5 Apr 2009 21:14:17 +0000 (-0500) Subject: use new_object instead of construct_instance in a few tests X-Git-Tag: 0.73_01~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1c11ec036998dbbd7e56e8bec4a3daaacca6fe8d;p=gitmo%2FMoose.git use new_object instead of construct_instance in a few tests --- diff --git a/t/030_roles/034_create_role.t b/t/030_roles/034_create_role.t index 089b8f8..8c1eb4e 100644 --- a/t/030_roles/034_create_role.t +++ b/t/030_roles/034_create_role.t @@ -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"); diff --git a/t/030_roles/035_anonymous_roles.t b/t/030_roles/035_anonymous_roles.t index ffedc29..75cd304 100644 --- a/t/030_roles/035_anonymous_roles.t +++ b/t/030_roles/035_anonymous_roles.t @@ -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");