From: gfx Date: Mon, 6 Sep 2010 05:08:35 +0000 (+0900) Subject: Catch up Moose's change d21262bd42c2539c47e5d41e7506710ecd27ad65 X-Git-Tag: 0.65~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b4d32aba7d552d0f77b994855c83a30d9d2144f0;p=gitmo%2FMouse.git Catch up Moose's change d21262bd42c2539c47e5d41e7506710ecd27ad65 --- diff --git a/lib/Mouse/Meta/Attribute.pm b/lib/Mouse/Meta/Attribute.pm index 3d9b585..a820d3e 100644 --- a/lib/Mouse/Meta/Attribute.pm +++ b/lib/Mouse/Meta/Attribute.pm @@ -167,7 +167,7 @@ sub _throw_type_constraint_error { } sub illegal_options_for_inheritance { - return qw(is reader writer accessor clearer predicate); + return qw(reader writer accessor clearer predicate); } sub clone_and_inherit_options{ diff --git a/t/020_attributes/022_illegal_options_for_inheritance.t b/t/020_attributes/022_illegal_options_for_inheritance.t index 014d946..4bfbf14 100644 --- a/t/020_attributes/022_illegal_options_for_inheritance.t +++ b/t/020_attributes/022_illegal_options_for_inheritance.t @@ -24,7 +24,7 @@ use Test::Exception; extends 'Foo'; - ::throws_ok { has '+foo' => (is => 'rw') } qr/illegal/, "can't override is"; + ::lives_ok { has '+foo' => (is => 'rw') } "can override is"; ::throws_ok { has '+foo' => (reader => 'bar') } qr/illegal/, "can't override reader"; ::lives_ok { has '+foo' => (clearer => 'baz') } "can override unspecified things";