Subject: | Moose::Meta::Attribute::Native::Trait::Counter defaults not working |
Hi all,
According to the documentation here
http://search.cpan.org/~flora/Moose-0.99/lib/Moose/Meta/Attribute/Native/Trait/Counter.pm#DESCRIPTION,
the attached example should work. However it does not seem to find an
"inc_foo()" method.
Am I missing something here?
Subject: | counter.pl |
#!/usr/bin/env perl
use strict;
use warnings FATAL => 'all';
use Test::Most;
{
package Foo;
use Moose;
has foo => ( traits => ['Counter'] );
no Moose;
1;
}
TODO: {
local $TODO = 'defaults do not appear to work';
my $foo = Foo->new();
can_ok $foo, 'inc_foo';
}
done_testing();