use warnings;
use Test::More;
-use Test::Fatal;
+use Test::Exception;
sub req_or_has ($$) {
my ( $role, $method ) = @_;
# this doesn't fail but it produces a requires in the role
# the order doesn't matter
has twist => ( is => "rw" );
- ::ok ! ::exception { with qw(Dancer) };
+ ::lives_ok { with qw(Dancer) };
package Dancer::Something;
use Moose;
has twist => ( is => "rw" );
{
- ::ok ! ::exception { with qw(Dancer) };
+ ::lives_ok { with qw(Dancer) };
}
package Dancer::80s;
# but due to the deferrence logic that doesn't actually work
{
local our $TODO = "attribute accessor in role doesn't satisfy role requires";
- ::ok ! ::exception { with qw(Dancer::Robot) };
+ ::lives_ok { with qw(Dancer::Robot) };
}
package Foo;
{
local our $TODO = "attrs and methods from a role should clash";
- ::ok ::exception { with qw(Tree Dog) },
+ ::dies_ok { with qw(Tree Dog) }
}
}