2 # reported in https://rt.cpan.org/Public/Bug/Display.html?id=59573
7 use Test::More tests => 2;
14 use MooseX::ClassAttribute;
16 is => 'bare', isa => 'HashRef[Str]',
18 default => sub { {} },
28 # in Moose 1.08/MooseX::ClassAttribute 0.16, this dies with:
29 # Can't use an undefined value as a HASH reference
30 lives_ok { Foo->has_attr('key') }
31 'Default builder in a native attribute trait is properly run when the attribute is defined with no standard accessors';