use warnings;
use Test::More;
-use Test::Exception;
+use Test::Fatal;
BEGIN {
use_ok('Moose::Util::TypeConstraints');
}
-lives_ok { class_type 'Beep' } 'class_type keywork works';
-lives_ok { class_type('Boop', message { "${_} is not a Boop" }) }
+ok ! exception { class_type 'Beep' }, 'class_type keywork works';
+ok ! exception { class_type('Boop', message { "${_} is not a Boop" }) },
'class_type keywork works with message';
my $type = find_type_constraint("Foo");