From 6cb603f33c763c3ca769e2f01883b49b5f2f48a2 Mon Sep 17 00:00:00 2001 From: Nigel Horne Date: Thu, 20 May 2021 10:48:07 -0400 Subject: [PATCH] Added t/comment_spelling.t --- MANIFEST | 4 +++- t/comment-spelling.t | 19 +++++++++++++++++++ t/{spelling.t => pod_spelling.t} | 0 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 t/comment-spelling.t rename t/{spelling.t => pod_spelling.t} (100%) diff --git a/MANIFEST b/MANIFEST index 58bb3c4..8533440 100644 --- a/MANIFEST +++ b/MANIFEST @@ -9,10 +9,12 @@ README README.md t/00-load.t t/boiler.t +t/comment-spelling.t t/coverage.t t/critic.t t/csp-us.t t/cv.t +t/eol.t t/gv.t t/kwalitee.t t/links.t @@ -22,10 +24,10 @@ t/no404s.t t/noplan.t t/pod-cm.t t/pod.t +t/pod_spelling.t t/port.t t/prereq.t t/snippets.t -t/spelling.t t/taint.t t/untaint.t t/vars.t diff --git a/t/comment-spelling.t b/t/comment-spelling.t new file mode 100644 index 0000000..0e59baf --- /dev/null +++ b/t/comment-spelling.t @@ -0,0 +1,19 @@ +#!perl + +use 5.006; +use strict; +use warnings; +use Test::Most; + +if($ENV{AUTHOR_TESTING} ) { + eval 'use Test::Spelling::Comment 0.002'; + if($@) { + plan(skip_all => 'Test::Spelling::Comment required for testing comment spelling'); + } else { + Test::Spelling::Comment->new()->add_stopwords()->all_files_ok(); + } +} else { + plan(skip_all => 'Author tests not required for installation'); +} + +__DATA__ diff --git a/t/spelling.t b/t/pod_spelling.t similarity index 100% rename from t/spelling.t rename to t/pod_spelling.t