X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F020_attributes%2F015_attribute_traits.t;h=01e97414f30ca91f54262e17f06d0bdf8062c169;hb=b6c42ac07e8d9c499b948b0f9015978242550336;hp=419770854e2a948fc05f2bfd1ade5eed24bf56aa;hpb=85a83bedc70fd9308360199e2a57f768c9f67923;p=gitmo%2FMouse.git diff --git a/t/020_attributes/015_attribute_traits.t b/t/020_attributes/015_attribute_traits.t index 4197708..01e9741 100644 --- a/t/020_attributes/015_attribute_traits.t +++ b/t/020_attributes/015_attribute_traits.t @@ -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, ); }; }