add test dependencies to Makefile.PL

This commit is contained in:
Oliver Gorwits
2014-08-13 11:41:29 +01:00
parent 7f768b544f
commit a93a9dd26d
3 changed files with 7 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ use FindBin qw( $Bin );
my @phantomjs = Env::Path->PATH->Whence('phantomjs');
my $phantomjs = scalar @phantomjs ? $phantomjs[0] : $ENV{ND_PHANTOMJS};
if ( !-x $phantomjs ) {
if ( ! defined $phantomjs or !-x $phantomjs ) {
plan skip_all =>
"phantomjs not found, please set ND_PHANTOMJS or install phantomjs to the default location";
}