diff options
Diffstat (limited to 'dist/Test-PerlRun/t/pod-spell.t')
-rw-r--r-- | dist/Test-PerlRun/t/pod-spell.t | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dist/Test-PerlRun/t/pod-spell.t b/dist/Test-PerlRun/t/pod-spell.t new file mode 100644 index 0000000000..d1f78b668d --- /dev/null +++ b/dist/Test-PerlRun/t/pod-spell.t @@ -0,0 +1,27 @@ +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__ +Rolsky + |