move xt tests to xt/author for Module::Install to work
[gitmo/MooseX-Singleton.git] / xt / author / pod-spell.t
diff --git a/xt/author/pod-spell.t b/xt/author/pod-spell.t
new file mode 100644 (file)
index 0000000..2f38ac2
--- /dev/null
@@ -0,0 +1,21 @@
+use strict;
+use warnings;
+
+use Test::More;
+eval 'use Test::Spelling;';
+plan skip_all => "Test::Spelling required for testing POD spelling" if $@;
+
+my @stopwords;
+for (<DATA>) {
+    chomp;
+    push @stopwords, $_
+        unless /\A (?: \# | \s* \z)/msx;    # skip comments, whitespace
+}
+
+add_stopwords(@stopwords);
+set_spell_cmd('aspell list -l en');
+all_pod_files_spelling_ok();
+
+__DATA__
+metaclass
+SIGNES