From: Tokuhiro Matsuno Date: Tue, 9 Jun 2009 06:33:07 +0000 (+0900) Subject: construct_instance is obsolated, use construct_instance instead X-Git-Tag: 0.24~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e0a5363d3298d5a1dff98727e59df57f17f0e9a0;p=gitmo%2FMouse.git construct_instance is obsolated, use construct_instance instead --- diff --git a/t/030_roles/failing/034_create_role.t b/t/030_roles/failing/034_create_role.t index e454dc3..25645d7 100644 --- a/t/030_roles/failing/034_create_role.t +++ b/t/030_roles/failing/034_create_role.t @@ -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"); diff --git a/t/030_roles/failing/035_anonymous_roles.t b/t/030_roles/failing/035_anonymous_roles.t index c4fad90..28bbde2 100644 --- a/t/030_roles/failing/035_anonymous_roles.t +++ b/t/030_roles/failing/035_anonymous_roles.t @@ -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");