Bug 9054: 00-load should not try to load modules with optional dependencies

Prior to this patch, t/00-load.t was trying to load Koha::SearchEngine,
which fails when Moose is not installed.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
Jared Camins-Esakov 2012-11-10 14:05:13 -05:00
parent 8263f5bdb4
commit 3ce177263b
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ find(
return unless $m =~ s/[.]pm$//;
$m =~ s{^.*/Koha/}{Koha/};
$m =~ s{/}{::}g;
return if $m =~ /Koha::SearchEngine::/; # Koha::SearchEngine::* are experimental
return if $m =~ /Koha::SearchEngine/; # Koha::SearchEngine::* are experimental
return if $m =~ /Koha::Cache::Memcached/; # optional dependency
use_ok($m) || BAIL_OUT("***** PROBLEMS LOADING FILE '$m'");
},