root/lang/perl/Catalyst-Plugin-ConfigLoader-Multi/trunk/t/spelling.t @ 11385

Revision 11385, 0.7 kB (checked in by tomyhero, 7 years ago)

lang/perl/Catalyst-Plugin-ConfigLoader?-Multi : fix bug

Line 
1use Test::More;
2use Test::Spelling;
3$ENV{LANG} = 'C';
4
5$ENV{TEST_SPELLING} or  plan skip_all => "no test for spelling. you must set TEST_SPELLING env for activate this test";
6
7my $spell_cmd;
8foreach my $path (split(/:/, $ENV{PATH})) {
9    -x "$path/spell"  and $spell_cmd="spell", last;
10    -x "$path/ispell" and $spell_cmd="ispell -l", last;
11    -x "$path/aspell" and $spell_cmd="aspell list", last;
12}
13$ENV{SPELL_CMD} and $spell_cmd = $ENV{SPELL_CMD};
14$spell_cmd or plan skip_all => "no spell/ispell/aspell";
15set_spell_cmd($spell_cmd);
16
17add_stopwords(<DATA>);
18all_pod_files_spelling_ok();
19
20__END__
21Tomohiro
22Teranishi
23Amano
24ConfigLoader
25Funakoshi
26Masahiro
27MyApp
28Yu-suke
29pm
30ENV
31MyApp.pm
Note: See TracBrowser for help on using the browser.