Tidy code and remove unneeded module loads
[gitmo/Moose.git] / t / 300_immutable / 002_apply_roles_to_immutable.t
index 7976635..7739b24 100644 (file)
@@ -3,9 +3,8 @@
 use strict;
 use warnings;
 
-use Test::More tests => 4;
-use Test::Exception;
-
+use Test::More;
+use Test::Fatal;
 
 
 {
@@ -32,10 +31,10 @@ 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');
 
-
+done_testing;