Bump version
[gitmo/MooseX-ClassAttribute.git] / t / 07-parameterized-role.t
index 9efefff..ba28077 100644 (file)
@@ -2,7 +2,11 @@ use strict;
 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';
@@ -33,10 +37,13 @@ plan skip_all =>
 my $instance = Class->new();
 isa_ok( $instance, 'Class' );
 
-lives_and {
-    $instance->foo('bar');
-    is( $instance->foo(), 'bar' );
-}
-'used class attribute from parameterized role';
+is(
+    exception {
+        $instance->foo('bar');
+        is( $instance->foo(), 'bar' );
+    },
+    undef,
+    'used class attribute from parameterized role'
+);
 
 done_testing();