X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F300_immutable%2F002_apply_roles_to_immutable.t;h=57d0c7f30b6e0c0f7036407f005d6c1dc1c744d8;hb=abandoned%2Fname-delegations;hp=e37331192a1e5b400c968a400280c68abea2a878;hpb=7ff5653479c2bfc0794635f7fbade9bfe7bb2381;p=gitmo%2FMoose.git diff --git a/t/300_immutable/002_apply_roles_to_immutable.t b/t/300_immutable/002_apply_roles_to_immutable.t index e373311..57d0c7f 100644 --- a/t/300_immutable/002_apply_roles_to_immutable.t +++ b/t/300_immutable/002_apply_roles_to_immutable.t @@ -3,16 +3,15 @@ use strict; use warnings; -use Test::More tests => 4; +use Test::More; use Test::Exception; - { package My::Role; use Moose::Role; - - around 'baz' => sub { + + around 'baz' => sub { my $next = shift; 'My::Role::baz(' . $next->(@_) . ')'; }; @@ -21,10 +20,10 @@ use Test::Exception; { package Foo; use Moose; - + sub baz { 'Foo::baz' } - - __PACKAGE__->meta->make_immutable(debug => 0); + + __PACKAGE__->meta->make_immutable(debug => 0); } my $foo = Foo->new; @@ -38,4 +37,4 @@ lives_ok { is($foo->baz, 'My::Role::baz(Foo::baz)', '... got the right value'); - +done_testing;