Use SurgicalPodWeaver
[gitmo/MooseX-ClassAttribute.git] / t / 07-parameterized-role.t
index df6780d..ba28077 100644 (file)
@@ -37,10 +37,13 @@ plan skip_all =>
 my $instance = Class->new();
 isa_ok( $instance, 'Class' );
 
-ok ! exception {
-    $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();