Login
Need to load extra RequireRcsKeywords policy for self-compliance tests.
authorJeffrey Ryan Thalhammer <jeff@imaginative-software.com>
Wed, 11 Jul 2012 06:29:58 +0000 (06:29 +0000)
committerJeffrey Ryan Thalhammer <jeff@imaginative-software.com>
Wed, 11 Jul 2012 06:29:58 +0000 (06:29 +0000)
xt/author/40_criticize-code.t
xt/author/42_criticize-tests.t

index 10d815d..b69898e 100644 (file)
@@ -23,7 +23,8 @@ use Perl::Critic::TestUtils qw{ starting_points_including_examples };
 # -extra-test-policies option to work.
 use Perl::Critic::PolicyFactory (
     '-test' => 1,
 # -extra-test-policies option to work.
 use Perl::Critic::PolicyFactory (
     '-test' => 1,
-    '-extra-test-policies' => [ qw{ ErrorHandling::RequireUseOfExceptions } ],
+    '-extra-test-policies' => [ qw{ ErrorHandling::RequireUseOfExceptions
+                                    Miscellanea::RequireRcsKeywords } ],
 );
 
 use Test::More;
 );
 
 use Test::More;
index 81fa657..adfe813 100644 (file)
@@ -21,7 +21,11 @@ use Perl::Critic::TestUtils qw{ starting_points_including_examples };
 
 # Note: "use PolicyFactory" *must* appear after "use TestUtils" for the
 # -extra-test-policies option to work.
 
 # Note: "use PolicyFactory" *must* appear after "use TestUtils" for the
 # -extra-test-policies option to work.
-use Perl::Critic::PolicyFactory ( '-test' => 1 );
+use Perl::Critic::PolicyFactory (
+    '-test' => 1,
+    '-extra-test-policies' => [ qw{ ErrorHandling::RequireUseOfExceptions
+                                    Miscellanea::RequireRcsKeywords } ],
+);
 
 use Test::More;
 
 
 use Test::More;