BEGIN {
plan
skip_all
=>
'test requires Test::Spelling'
unless
eval
q{ use Test::Spelling; 1 }
;
plan
skip_all
=>
'test requires YAML'
unless
eval
q{ use YAML; 1; }
;
};
my
$config_filename
= File::Spec->catfile(
$FindBin::Bin
,
'release.yml'
);
my
$config
;
$config
= LoadFile(
$config_filename
)
if
-r
$config_filename
;
chdir
(File::Spec->catdir(
$FindBin::Bin
, File::Spec->updir, File::Spec->updir));
add_stopwords(@{
$config
->{pod_spelling_system}->{stopwords} });
add_stopwords(<DATA>);
all_pod_files_spelling_ok;