X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F020_attributes%2F015_attribute_traits.t;fp=t%2F020_attributes%2F015_attribute_traits.t;h=1121d52df55d90071b074cf7b08c65d553e45b59;hb=4060c871da12ba3c5e88986ed121a8254f906bd6;hp=01e97414f30ca91f54262e17f06d0bdf8062c169;hpb=95ecd6f132112c6763cdaf2e6bc72c39e9ab76b5;p=gitmo%2FMouse.git diff --git a/t/020_attributes/015_attribute_traits.t b/t/020_attributes/015_attribute_traits.t index 01e9741..1121d52 100644 --- a/t/020_attributes/015_attribute_traits.t +++ b/t/020_attributes/015_attribute_traits.t @@ -1,11 +1,9 @@ #!/usr/bin/perl -use lib 't/lib'; use strict; use warnings; use Test::More tests => 12; - use Test::Exception; use Test::Mouse; @@ -21,11 +19,9 @@ use Test::Mouse; after 'install_accessors' => sub { my $self = shift; - my $reader = $self->get_read_method_ref; - $self->associated_class->add_method( $self->alias_to, - $reader, + $self->get_read_method_ref ); }; } @@ -58,7 +54,6 @@ can_ok($c, 'baz'); is($c->baz, 100, '... got the right value for baz'); my $bar_attr = $c->meta->get_attribute('bar'); - does_ok($bar_attr, 'My::Attribute::Trait'); ok($bar_attr->has_applied_traits, '... got the applied traits'); is_deeply($bar_attr->applied_traits, [qw/My::Attribute::Trait/], '... got the applied traits');