Use Test::NoTabs instead of Test::Perl::Critic.
Florian Ragwitz [Wed, 3 Sep 2008 08:38:05 +0000 (08:38 +0000)]
Makefile.PL
t/04critic.rc [deleted file]
t/04critic.t

index 00470d7..29dd6f8 100644 (file)
@@ -34,7 +34,7 @@ requires 'Text::Balanced'; # core in 5.8.x but mentioned for completeness
 requires 'MRO::Compat';
 
 if (-e 'inc/.author') {
-  build_requires 'Test::Perl::Critic';
+  build_requires 'Test::NoTabs';
   build_requires 'Test::Pod' => 1.14;
   build_requires 'Test::Pod::Coverage' => 1.04;
 
diff --git a/t/04critic.rc b/t/04critic.rc
deleted file mode 100644 (file)
index 412f770..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-include  = CodeLayout::ProhibitHardTabs
-only     = 1
-
-[CodeLayout::ProhibitHardTabs]
-allow_leading_tabs = 0
\ No newline at end of file
index d94c165..5a4a226 100644 (file)
@@ -9,14 +9,13 @@ if ( !-e "$FindBin::Bin/../MANIFEST.SKIP" ) {
     plan skip_all => 'Critic test only for developers.';
 }
 else {
-    eval { require Test::Perl::Critic };
+    eval { require Test::NoTabs };
     if ( $@ ) {
         plan tests => 1;
-        fail( 'You must install Test::Perl::Critic to run 04critic.t' );
+        fail( 'You must install Test::NoTabs to run 04critic.t' );
         exit;
     }
 }
 
-my $rcfile = File::Spec->catfile( 't', '04critic.rc' );
-Test::Perl::Critic->import( -profile => $rcfile );
-all_critic_ok();
\ No newline at end of file
+Test::NoTabs->import;
+all_perl_files_ok(qw/lib/);