From: Florian Ragwitz Date: Wed, 3 Sep 2008 08:38:05 +0000 (+0000) Subject: Use Test::NoTabs instead of Test::Perl::Critic. X-Git-Tag: 5.8000_03~72 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=1faaa3e99565660c7e3cd433e01c80343828f8a8 Use Test::NoTabs instead of Test::Perl::Critic. --- diff --git a/Makefile.PL b/Makefile.PL index 00470d7..29dd6f8 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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 index 412f770..0000000 --- a/t/04critic.rc +++ /dev/null @@ -1,5 +0,0 @@ -include = CodeLayout::ProhibitHardTabs -only = 1 - -[CodeLayout::ProhibitHardTabs] -allow_leading_tabs = 0 \ No newline at end of file diff --git a/t/04critic.t b/t/04critic.t index d94c165..5a4a226 100644 --- a/t/04critic.t +++ b/t/04critic.t @@ -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/);