Skip to content

Commit

Permalink
use AUTHOR_TESTING instead of RELEASE_TESTING
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed May 14, 2024
1 parent 8d4386c commit 966b4e0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions t/pod-spelling.t
Original file line number Diff line number Diff line change
Expand Up @@ -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(<DATA>);
all_pod_files_spelling_ok();
}
} else {
add_stopwords(<DATA>);
all_pod_files_spelling_ok();
plan(skip_all => 'Author tests not required for installation');
}

__END__
Expand Down

0 comments on commit 966b4e0

Please sign in to comment.