From: Dave Rolsky Date: Sun, 4 Mar 2012 21:53:51 +0000 (-0600) Subject: Add spelling test X-Git-Tag: v0.12~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=20ad0ac13a894876c3f582de5323f257b9123052;p=gitmo%2FPackage-DeprecationManager.git Add spelling test --- diff --git a/xt/release/pod-spell.t b/xt/release/pod-spell.t new file mode 100644 index 0000000..e0706ce --- /dev/null +++ b/xt/release/pod-spell.t @@ -0,0 +1,25 @@ +use strict; +use warnings; + +use Test::Spelling; + +my @stopwords; +for () { + 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__ +Goro +PayPal +Rolsky +api