6 use Test::More no_plan => 1;
9 use_ok('MooseX::AttributeHelpers');
17 metaclass => 'Collection::Hash',
20 default => sub { {} },
22 'set' => 'set_option',
23 'get' => 'get_option',
28 my $stuff = Stuff->new();
29 isa_ok($stuff, 'Stuff');
31 is_deeply($stuff->options, {}, '... no options yet');
33 $stuff->set_option(foo => 'bar');
34 is_deeply($stuff->options, { foo => 'bar' }, '... got options now');
36 $stuff->set_option(bar => 'baz');
37 is_deeply($stuff->options, { foo => 'bar', bar => 'baz' }, '... got more options now');
39 is($stuff->get_option('foo'), 'bar', '... got the right option');