more-method-refactoring
[gitmo/Class-MOP.git] / t / 014_attribute_introspection.t
index 5084f79..e33edf6 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 43;
+use Test::More tests => 44;
 use Test::Exception;
 
 BEGIN {
@@ -30,29 +30,27 @@ BEGIN {
         has_writer    writer
         has_reader    reader
         has_predicate predicate
+        has_clearer   clearer
         has_init_arg  init_arg
-        has_default   default
+        has_default   default    is_default_a_coderef
+        
+        slots
+        get_value
+        set_value
         
         associated_class
-        attach_to_class detach_from_class
+        attach_to_class detach_from_class 
         
-        generate_accessor_method
-        generate_reader_method
-        generate_writer_method
-        generate_predicate_method
+        accessor_metaclass
         
         process_accessors
         install_accessors
         remove_accessors
-
-               slot_name
-               allocate_slots
-               deallocate_slots
         );
         
     is_deeply(
-        [ sort @methods ],
         [ sort $meta->get_method_list ],
+        [ sort @methods ],
         '... our method list matches');        
     
     foreach my $method_name (@methods) {
@@ -60,13 +58,13 @@ BEGIN {
     }
     
     my @attributes = qw(
-        name accessor reader writer predicate
+        name accessor reader writer predicate clearer
         init_arg default associated_class
         );
 
     is_deeply(
-        [ sort @attributes ],
         [ sort $meta->get_attribute_list ],
+        [ sort @attributes ],
         '... our attribute list matches');
     
     foreach my $attribute_name (@attributes) {