Add default for counter
[gitmo/MooseX-ClassAttribute.git] / t / 04-with-native-traits.t
index 6ec2b8b..696972d 100644 (file)
@@ -12,6 +12,7 @@ use Test::More tests => 2;
     class_has counter => (
         traits  => ['Counter'],
         is      => 'ro',
+        default => 0,
         handles => {
             inc_counter => 'inc',
         },