Fix tests
[gitmo/Mouse.git] / t / 020_attributes / 015_attribute_traits.t
index 4197708..01e9741 100644 (file)
@@ -5,6 +5,7 @@ use strict;
 use warnings;
 
 use Test::More tests => 12;
+
 use Test::Exception;
 use Test::Mouse;
 
@@ -20,11 +21,11 @@ use Test::Mouse;
 
     after 'install_accessors' => sub {
         my $self = shift;
-        my $reader = $self->get_read_method;
+        my $reader = $self->get_read_method_ref;
 
         $self->associated_class->add_method(
             $self->alias_to,
-            sub { shift->$reader(@_) },
+            $reader,
         );
     };
 }