use warnings;
use Test::More;
-use Test::Exception;
+use Test::Fatal;
+
+use Test::Requires {
+ 'MooseX::Role::Parameterized' => '0',
+};
plan skip_all =>
'This test will not pass without changes to MooseX::Role::Parmeterized';
my $instance = Class->new();
isa_ok( $instance, 'Class' );
-lives_and {
+ok ! exception {
$instance->foo('bar');
is( $instance->foo(), 'bar' );
-}
+},
'used class attribute from parameterized role';
done_testing();