From: Shawn M Moore Date: Sun, 8 Mar 2009 07:16:47 +0000 (-0400) Subject: Don't use a method modifier in a test, since they may not be available X-Git-Tag: 0.19~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=917aa1dafc52c811f6eaeafdc58eaf9b7749774c;hp=c1c94293a5d4956ffa8219d8e6d804624832ff34;p=gitmo%2FMouse.git Don't use a method modifier in a test, since they may not be available --- diff --git a/t/044-attribute-metaclass.t b/t/044-attribute-metaclass.t index bd9ca8f..e0d4e07 100644 --- a/t/044-attribute-metaclass.t +++ b/t/044-attribute-metaclass.t @@ -9,9 +9,9 @@ do { use Mouse; extends 'Mouse::Meta::Attribute'; - around 'create' => sub { - my ($next, @args) = @_; - my $attr = $next->(@args); + sub create { + my ($self, @args) = @_; + my $attr = $self->SUPER::create(@args); my %provides = %{$attr->{provides}}; my $method_constructors = { add => sub {