X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fpod-spell.t;fp=xt%2Fpod-spell.t;h=63d9a3e5436672c485310da074372bf968e2d4a2;hb=2a9c7c3878b5d387c16af48c1010d8a1bcc41003;hp=0000000000000000000000000000000000000000;hpb=54cc4bad8c14d4adadc4bef100f351a2ad0b01c9;p=gitmo%2FMooseX-StrictConstructor.git diff --git a/xt/pod-spell.t b/xt/pod-spell.t new file mode 100644 index 0000000..63d9a3e --- /dev/null +++ b/xt/pod-spell.t @@ -0,0 +1,26 @@ +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 () { + 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__ +PayPal