diff --git a/xt/11-portsort.t b/xt/11-portsort.t index fac43216..a0330a53 100644 --- a/xt/11-portsort.t +++ b/xt/11-portsort.t @@ -3,16 +3,14 @@ use strict; use warnings; use Test::More; -use Test::File::ShareDir::Dist { 'App-Netdisco' => 'share/' }; use Env::Path; use FindBin qw( $Bin ); -my @phantomjs = Env::Path->PATH->Whence('phantomjs'); -my $phantomjs = scalar @phantomjs ? $phantomjs[0] : $ENV{ND_PHANTOMJS}; +my $phantomjs = $ENV{ND_PHANTOMJS}; -if ( ! defined $phantomjs or !-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"; + "phantomjs not found, please set ND_PHANTOMJS to the location of the phantomjs executable"; } else { exec( $phantomjs, "$Bin/js/run_qunit.js", "$Bin/html/portsort.html" );