diff --git a/t/pod-spelling.t b/t/pod-spelling.t index ed2b1e6..7c29f92 100644 --- a/t/pod-spelling.t +++ b/t/pod-spelling.t @@ -5,16 +5,16 @@ use warnings; use Test::Most; -unless($ENV{AUTHOR_TESTING}) { - plan(skip_all => 'Author tests not required for installation'); -} - -eval 'use Test::Spelling'; -if($@) { - plan(skip_all => 'Test::Spelling required for testing POD spelling'); +if($ENV{AUTHOR_TESTING}) { + eval 'use Test::Spelling'; + if($@) { + plan(skip_all => 'Test::Spelling required for testing POD spelling'); + } else { + add_stopwords(); + all_pod_files_spelling_ok(); + } } else { - add_stopwords(); - all_pod_files_spelling_ok(); + plan(skip_all => 'Author tests not required for installation'); } __END__