use warnings;
use Test::More;
-use Test::Fatal;
+use Test::Exception;
use Scalar::Util 'blessed';
ok(!$bar->can( 'talk' ), "... the role is not composed yet");
-ok exception {
+dies_ok {
$foo->dog($bar)
-}, '... and setting the accessor fails (not a Dog yet)';
+} '... and setting the accessor fails (not a Dog yet)';
Dog->meta->apply($bar);
is($bar->talk, 'woof', '... got the right return value for the newly composed method');
-ok ! exception {
+lives_ok {
$foo->dog($bar)
-}, '... and setting the accessor is okay';
+} '... and setting the accessor is okay';
done_testing;