Require Pod::Simple which understands L<foo|url> in author mode. Move the Pod tests...
Tomas Doran [Tue, 29 Dec 2009 01:07:14 +0000 (01:07 +0000)]
Makefile.PL
t/author/pod-coverage.t [new file with mode: 0644]
t/author/pod.t [new file with mode: 0644]
t/pod-coverage.t [deleted file]
t/pod.t [deleted file]

index 991f89b..c64d99b 100644 (file)
@@ -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<Foo|http://foo.com> 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 (file)
index 0000000..66338a3
--- /dev/null
@@ -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 (file)
index 0000000..a4cdf07
--- /dev/null
@@ -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 (file)
index 955f071..0000000
+++ /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 (file)
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();