Tidy code and remove unneeded module loads
[gitmo/Moose.git] / t / 300_immutable / 002_apply_roles_to_immutable.t
index 57d0c7f..7739b24 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 {
+ok ! exception {
     My::Role->meta->apply($foo)
-} '... successfully applied the role to immutable instance';
+}, '... successfully applied the role to immutable instance';
 
 is($foo->baz, 'My::Role::baz(Foo::baz)', '... got the right value');