From: Shawn M Moore Date: Sat, 30 May 2009 18:15:59 +0000 (-0400) Subject: Test fixes for lazy build no longer setting required X-Git-Tag: 0.80~56 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4d176afe914f649fa6cb8f76fc6c53368eb69baf;p=gitmo%2FMoose.git Test fixes for lazy build no longer setting required --- diff --git a/t/020_attributes/012_misc_attribute_tests.t b/t/020_attributes/012_misc_attribute_tests.t index 69614d8..8d02691 100644 --- a/t/020_attributes/012_misc_attribute_tests.t +++ b/t/020_attributes/012_misc_attribute_tests.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 48; +use Test::More tests => 47; use Test::Exception; @@ -227,7 +227,7 @@ use Test::Exception; is($foo_attr->predicate, "has_foo", ".. and it's named has_foo"); ok($_foo_attr->is_lazy, "_foo is lazy"); - ok($_foo_attr->is_required, "_foo is required"); + ok(!$_foo_attr->is_required, "lazy_build attributes are no longer automatically required"); ok($_foo_attr->is_lazy_build, "_foo is lazy_build"); ok($_foo_attr->has_clearer, "_foo has clearer");