use warnings;
use Test::More;
-use Test::Exception;
+use Test::Fatal;
{
package My::Class;
use Moose;
- ::throws_ok {
+ ::like( ::exception {
extends 'My::Role';
- } qr/You cannot inherit from a Moose Role \(My\:\:Role\)/,
- '... this croaks correctly';
+ }, qr/You cannot inherit from a Moose Role \(My\:\:Role\)/, '... this croaks correctly' );
}
done_testing;