X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F030_roles%2F031_roles_applied_in_create.t;h=1fc3cf62a1b6e2d1fd82cabcf6cffb29d42f7e40;hb=b10dde3a27c11623547417c599ccbd4f92e42651;hp=0d453731c1af62e0d372e2238afda648cf5d8442;hpb=d4e538d9bf46d1c14d2ecfd36ac35ed541ae7ee6;p=gitmo%2FMoose.git diff --git a/t/030_roles/031_roles_applied_in_create.t b/t/030_roles/031_roles_applied_in_create.t index 0d45373..1fc3cf6 100644 --- a/t/030_roles/031_roles_applied_in_create.t +++ b/t/030_roles/031_roles_applied_in_create.t @@ -4,7 +4,7 @@ use strict; use warnings; use Test::More; -use Test::Exception; +use Test::Fatal; use Moose::Meta::Class; use Moose::Util; @@ -13,14 +13,13 @@ 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 { +is( exception { 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'; +}, undef, 'Create a new class with several roles' ); done_testing;