update/add author tests
Dave Rolsky [Thu, 18 Mar 2010 05:01:27 +0000 (00:01 -0500)]
xt/kwalitee.t [new file with mode: 0644]
xt/pod-coverage.t [moved from xt/pod_coverage.t with 100% similarity]
xt/pod-spell.t [new file with mode: 0644]
xt/pod.t

diff --git a/xt/kwalitee.t b/xt/kwalitee.t
new file mode 100644 (file)
index 0000000..72b6988
--- /dev/null
@@ -0,0 +1,8 @@
+use strict;
+use warnings;
+
+use Test::More;
+
+eval { require Test::Kwalitee; Test::Kwalitee->import() };
+plan skip_all => "Test::Kwalitee needed for testing kwalitee"
+    if $@;
similarity index 100%
rename from xt/pod_coverage.t
rename to xt/pod-coverage.t
diff --git a/xt/pod-spell.t b/xt/pod-spell.t
new file mode 100644 (file)
index 0000000..cd0934d
--- /dev/null
@@ -0,0 +1,30 @@
+use strict;
+use warnings;
+
+use Test::More;
+
+eval "use Test::Spelling";
+plan skip_all => "Test::Spelling required for testing POD coverage"
+    if $@;
+
+my @stopwords;
+for (<DATA>) {
+    chomp;
+    push @stopwords, $_
+        unless /\A (?: \# | \s* \z)/msx;    # skip comments, whitespace
+}
+
+add_stopwords(@stopwords);
+set_spell_cmd('aspell list -l en');
+
+# This prevents a weird segfault from the aspell command - see
+# https://bugs.launchpad.net/ubuntu/+source/aspell/+bug/71322
+local $ENV{LC_ALL} = 'C';
+all_pod_files_spelling_ok();
+
+__DATA__
+Stevan
+cpan
+isa
+param
+subname
index 4ae1af3..69d8e60 100644 (file)
--- a/xt/pod.t
+++ b/xt/pod.t
@@ -1,5 +1,3 @@
-#!/usr/bin/perl
-
 use strict;
 use warnings;