From: Dave Rolsky Date: Mon, 27 Sep 2010 22:09:59 +0000 (-0500) Subject: Add default for counter X-Git-Tag: v0.18~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b6819869af762becdfc479fb36c982a7ab112441;p=gitmo%2FMooseX-ClassAttribute.git Add default for counter --- diff --git a/t/04-with-native-traits.t b/t/04-with-native-traits.t index 6ec2b8b..696972d 100644 --- a/t/04-with-native-traits.t +++ b/t/04-with-native-traits.t @@ -12,6 +12,7 @@ use Test::More tests => 2; class_has counter => ( traits => ['Counter'], is => 'ro', + default => 0, handles => { inc_counter => 'inc', },