fixing version numbers and writing the changelog
[gitmo/Class-MOP.git] / t / 010_self_introspection.t
index 685f924..ee87164 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 169;
+use Test::More tests => 181;
 use Test::Exception;
 
 BEGIN {
@@ -33,8 +33,12 @@ my @class_mop_package_methods = qw(
     initialize
 
     name
+    namespace
     
-    add_package_symbol get_package_symbol has_package_symbol remove_package_symbol    
+    add_package_symbol get_package_symbol has_package_symbol remove_package_symbol 
+    list_all_package_symbols remove_package_glob
+    
+    _deconstruct_variable_name
 );
 
 my @class_mop_module_methods = qw(
@@ -61,7 +65,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
 
@@ -131,6 +135,7 @@ foreach my $non_method_name (qw(
 
 my @class_mop_package_attributes = (
     '$:package', 
+    '%:namespace',
 );
 
 my @class_mop_module_attributes = (
@@ -217,7 +222,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 {}');