Redid conversion to Test::Fatal
[gitmo/Moose.git] / t / 300_immutable / 002_apply_roles_to_immutable.t
index 57d0c7f..b153a8f 100644 (file)
@@ -4,7 +4,7 @@ use strict;
 use warnings;
 
 use Test::More;
-use Test::Exception;
+use Test::Fatal;
 
 
 {
@@ -31,9 +31,9 @@ isa_ok($foo, 'Foo');
 
 is($foo->baz, 'Foo::baz', '... got the right value');
 
-lives_ok {
+is( exception {
     My::Role->meta->apply($foo)
-} '... successfully applied the role to immutable instance';
+}, undef, '... successfully applied the role to immutable instance' );
 
 is($foo->baz, 'My::Role::baz(Foo::baz)', '... got the right value');