All unit tests passing with refactored stuff, documentation updated significantly.
[gitmo/MooseX-AttributeHelpers.git] / t / 005_basic_list.t
index bb8d10f..ac50393 100644 (file)
@@ -20,11 +20,11 @@ BEGIN {
         isa       => 'ArrayRef[Int]',
         default   => sub { [] },
         provides  => {
-            'count'   => 'num_options',
-            'empty'   => 'has_options',        
-            'map'     => 'map_options',
-            'grep'    => 'filter_options',
-            'find'    => 'find_option',
+            'count'     => 'num_options',
+            'has_items' => 'has_options',        
+            'map'       => 'map_options',
+            'grep'      => 'filter_options',
+            'find'      => 'find_option',
         }
     );
 }
@@ -65,11 +65,11 @@ my $options = $stuff->meta->get_attribute('options');
 isa_ok($options, 'MooseX::AttributeHelpers::Collection::List');
 
 is_deeply($options->provides, {
-    'map'     => 'map_options',
-    'grep'    => 'filter_options',
-    'find'    => 'find_option',
-    'count'   => 'num_options',
-    'empty'   => 'has_options',    
-}, '... got the right provies mapping');
+    'map'       => 'map_options',
+    'grep'      => 'filter_options',
+    'find'      => 'find_option',
+    'count'     => 'num_options',
+    'has_items' => 'has_options',        
+}, '... got the right provides mapping');
 
 is($options->type_constraint->type_parameter, 'Int', '... got the right container type');