add spelling test
Dave Rolsky [Mon, 24 Jan 2011 22:02:33 +0000 (16:02 -0600)]
xt/release/pod-spell.t [new file with mode: 0644]

diff --git a/xt/release/pod-spell.t b/xt/release/pod-spell.t
new file mode 100644 (file)
index 0000000..e40aa0c
--- /dev/null
@@ -0,0 +1,27 @@
+use strict;
+use warnings;
+
+use Test::Spelling;
+
+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__
+APIs
+RESTful
+bizarro
+del
+namespace
+ness