From: Dave Rolsky Date: Thu, 28 Oct 2010 17:46:54 +0000 (-0500) Subject: Don't use explicit sub token with lives_ok X-Git-Tag: 1.18~32 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8b776b2d89e46365be4dacc02db30725233e6e6b;p=gitmo%2FMoose.git Don't use explicit sub token with lives_ok --- diff --git a/t/030_roles/031_roles_applied_in_create.t b/t/030_roles/031_roles_applied_in_create.t index 10d698c..0d45373 100644 --- a/t/030_roles/031_roles_applied_in_create.t +++ b/t/030_roles/031_roles_applied_in_create.t @@ -13,16 +13,14 @@ use lib 't/lib', 'lib'; # Note that this test passed (pre svn #5543) if we inlined the role # definitions in this file, as it was very timing sensitive. -lives_ok( - sub { - my $builder_meta = Moose::Meta::Class->create( - 'YATTA' => ( - superclass => 'Moose::Meta::Class', - roles => [qw( Role::Interface Role::Child )], - ) - ); - }, - 'Create a new class with several roles' -); +lives_ok { + my $builder_meta = Moose::Meta::Class->create( + 'YATTA' => ( + superclass => 'Moose::Meta::Class', + roles => [qw( Role::Interface Role::Child )], + ) + ); +} +'Create a new class with several roles'; done_testing;