Docs, small fixes, find_method_by_name and the get_value/set_value abstraction for...
[gitmo/Class-MOP.git] / t / 010_self_introspection.t
index 685f924..018b7c2 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 169;
+use Test::More tests => 171;
 use Test::Exception;
 
 BEGIN {
@@ -61,7 +61,7 @@ my @class_mop_class_methods = qw(
     
     has_method get_method add_method remove_method alias_method
     get_method_list compute_all_applicable_methods 
-       find_all_methods_by_name find_next_method_by_name
+       find_method_by_name find_all_methods_by_name find_next_method_by_name
     
        add_before_method_modifier add_after_method_modifier add_around_method_modifier
 
@@ -217,7 +217,7 @@ is($class_mop_class_meta->get_attribute('%:attributes')->init_arg,
   '... Class::MOP::Class %:attributes\'s a init_arg is :attributes');   
   
 ok($class_mop_class_meta->get_attribute('%:attributes')->has_default, '... Class::MOP::Class %:attributes has a default');
-is_deeply($class_mop_class_meta->get_attribute('%:attributes')->default, 
+is_deeply($class_mop_class_meta->get_attribute('%:attributes')->default('Foo'), 
          {}, 
          '... Class::MOP::Class %:attributes\'s a default of {}');