use strict;
use warnings;
-use Test::More tests => 1;
-use Test::Exception;
-
+use Test::More;
+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;