Make sure that applied_attribute roles don't spill over to other roles to during...
[gitmo/Moose.git] / t / 300_immutable / 007_immutable_trigger_from_constructor.t
index bc86c1d..037a1e5 100644 (file)
@@ -4,7 +4,7 @@ use strict;
 use warnings;
 
 use Test::More;
-use Test::Exception;
+use Test::Fatal;
 
 
 {
@@ -33,6 +33,6 @@ like ($@, qr/^Pulling the Foo trigger/, "trigger from immutable constructor");
 eval { AClass->new(baz => 'bar') };
 like ($@, qr/^Pulling the Baz trigger/, "trigger from immutable constructor");
 
-lives_ok { AClass->new(bar => 'bar') } '... no triggers called';
+is( exception { AClass->new(bar => 'bar') }, undef, '... no triggers called' );
 
 done_testing;