From: Tomas Doran Date: Tue, 29 Dec 2009 01:07:14 +0000 (+0000) Subject: Require Pod::Simple which understands L in author mode. Move the Pod tests... X-Git-Tag: v5.8005~69 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=commitdiff_plain;h=adb0550a261872e52c0c135273249c8b32445a11 Require Pod::Simple which understands L in author mode. Move the Pod tests to be author only using standard mechanisms, make running them mandatory --- diff --git a/Makefile.PL b/Makefile.PL index 991f89b..c64d99b 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -2,9 +2,8 @@ use strict; use warnings; use inc::Module::Install 0.87; -if ($Module::Install::AUTHOR) { - require Module::Install::AuthorRequires; -} +use Module::Install::AuthorTests; +use Module::Install::AuthorRequires; name 'Catalyst-Manual'; all_from 'lib/Catalyst/Manual.pm'; @@ -13,8 +12,10 @@ license 'perl'; test_requires 'Test::More'; -author_requires 'Test::Pod'; -author_requires 'Test::Pod::Coverage'; +author_requires 'Pod::Simple' => '3.11'; # L support +author_requires 'Test::Pod' => '1.14'; +author_requires 'Test::Pod::Coverage' => '1.04'; +author_tests 't/author'; auto_install; resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Manual/5.80/trunk/'; diff --git a/t/author/pod-coverage.t b/t/author/pod-coverage.t new file mode 100644 index 0000000..66338a3 --- /dev/null +++ b/t/author/pod-coverage.t @@ -0,0 +1,5 @@ +use Test::More; + +use Test::Pod::Coverage 1.04; + +all_pod_coverage_ok(); diff --git a/t/author/pod.t b/t/author/pod.t new file mode 100644 index 0000000..a4cdf07 --- /dev/null +++ b/t/author/pod.t @@ -0,0 +1,4 @@ +use Test::More; +use Test::Pod 1.14; +all_pod_files_ok(); + diff --git a/t/pod-coverage.t b/t/pod-coverage.t deleted file mode 100644 index 955f071..0000000 --- a/t/pod-coverage.t +++ /dev/null @@ -1,7 +0,0 @@ -use Test::More; - -eval "use Test::Pod::Coverage 1.04"; -plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@; -plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD} || -e 'inc/.author'; - -all_pod_coverage_ok(); diff --git a/t/pod.t b/t/pod.t deleted file mode 100644 index 05aa78a..0000000 --- a/t/pod.t +++ /dev/null @@ -1,7 +0,0 @@ -use Test::More; - -eval "use Test::Pod 1.14"; -plan skip_all => 'Test::Pod 1.14 required' if $@; -plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD} || -e 'inc/.author'; - -all_pod_files_ok();