All unit tests passing with refactored stuff, documentation updated significantly.
[gitmo/MooseX-AttributeHelpers.git] / t / 003_basic_hash.t
index 24a6b3f..8f31e83 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 32;
+use Test::More tests => 33;
 use Test::Exception;
 
 BEGIN {
@@ -21,12 +21,13 @@ BEGIN {
         isa       => 'HashRef[Str]',
         default   => sub { {} },
         provides  => {
-            'set'    => 'set_option',
-            'get'    => 'get_option',            
-            'empty'  => 'has_options',
-            'count'  => 'num_options',
-            'clear'  => 'clear_options',
-            'delete' => 'delete_option',
+            'set'       => 'set_option',
+            'get'       => 'get_option',            
+            'has_items' => 'has_options',
+            'is_empty'  => 'no_options',
+            'count'     => 'num_options',
+            'clear'     => 'clear_options',
+            'delete'    => 'delete_option',
         }
     );
 }
@@ -38,12 +39,13 @@ can_ok($stuff, $_) for qw[
     set_option
     get_option
     has_options
+    no_options
     num_options
     delete_option
     clear_options
 ];
 
-ok(!$stuff->has_options, '... we have no options');
+ok($stuff->no_options, '... we have no options');
 is($stuff->num_options, 0, '... we have no options');
 
 is_deeply($stuff->options, {}, '... no options yet');