lazy_build should be able to be added in inherited attributes
[gitmo/Moose.git] / t / 020_attributes / 009_attribute_inherited_slot_specs.t
index 1c825d9..3b53a1d 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 83;
+use Test::More tests => 84;
 use Test::Exception;
 
 
@@ -72,6 +72,10 @@ use Test::Exception;
     } '... we can change/add lazy as an attribute option';    
 
     ::lives_ok {
+        has '+gloum' => (lazy_build => 1);
+    } '... we can add lazy_build as an attribute option';
+
+    ::lives_ok {
         has '+bunch_of_stuff' => (isa => 'ArrayRef[Int]');        
     } '... extend an attribute with parameterized type';