[Catalyst-commits] r12490 - in Catalyst-Manual/5.80/trunk: . t
t/author
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Tue Dec 29 01:07:14 GMT 2009
Author: t0m
Date: 2009-12-29 01:07:14 +0000 (Tue, 29 Dec 2009)
New Revision: 12490
Added:
Catalyst-Manual/5.80/trunk/t/author/
Catalyst-Manual/5.80/trunk/t/author/pod-coverage.t
Catalyst-Manual/5.80/trunk/t/author/pod.t
Removed:
Catalyst-Manual/5.80/trunk/t/pod-coverage.t
Catalyst-Manual/5.80/trunk/t/pod.t
Modified:
Catalyst-Manual/5.80/trunk/Makefile.PL
Log:
Require Pod::Simple which understands L<foo|url> in author mode. Move the Pod tests to be author only using standard mechanisms, make running them mandatory
Modified: Catalyst-Manual/5.80/trunk/Makefile.PL
===================================================================
--- Catalyst-Manual/5.80/trunk/Makefile.PL 2009-12-29 01:03:52 UTC (rev 12489)
+++ Catalyst-Manual/5.80/trunk/Makefile.PL 2009-12-29 01:07:14 UTC (rev 12490)
@@ -2,9 +2,8 @@
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 @@
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/';
Copied: Catalyst-Manual/5.80/trunk/t/author/pod-coverage.t (from rev 12217, Catalyst-Manual/5.80/trunk/t/pod-coverage.t)
===================================================================
--- Catalyst-Manual/5.80/trunk/t/author/pod-coverage.t (rev 0)
+++ Catalyst-Manual/5.80/trunk/t/author/pod-coverage.t 2009-12-29 01:07:14 UTC (rev 12490)
@@ -0,0 +1,5 @@
+use Test::More;
+
+use Test::Pod::Coverage 1.04;
+
+all_pod_coverage_ok();
Copied: Catalyst-Manual/5.80/trunk/t/author/pod.t (from rev 12217, Catalyst-Manual/5.80/trunk/t/pod.t)
===================================================================
--- Catalyst-Manual/5.80/trunk/t/author/pod.t (rev 0)
+++ Catalyst-Manual/5.80/trunk/t/author/pod.t 2009-12-29 01:07:14 UTC (rev 12490)
@@ -0,0 +1,4 @@
+use Test::More;
+use Test::Pod 1.14;
+all_pod_files_ok();
+
Deleted: Catalyst-Manual/5.80/trunk/t/pod-coverage.t
===================================================================
--- Catalyst-Manual/5.80/trunk/t/pod-coverage.t 2009-12-29 01:03:52 UTC (rev 12489)
+++ Catalyst-Manual/5.80/trunk/t/pod-coverage.t 2009-12-29 01:07:14 UTC (rev 12490)
@@ -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();
Deleted: Catalyst-Manual/5.80/trunk/t/pod.t
===================================================================
--- Catalyst-Manual/5.80/trunk/t/pod.t 2009-12-29 01:03:52 UTC (rev 12489)
+++ Catalyst-Manual/5.80/trunk/t/pod.t 2009-12-29 01:07:14 UTC (rev 12490)
@@ -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();
More information about the Catalyst-commits
mailing list