lib/jasmine-phantom/tasks.rake in jasmine-phantom-0.0.9 vs lib/jasmine-phantom/tasks.rake in jasmine-phantom-0.0.11
- old
+ new
@@ -1,6 +1,7 @@
require 'jasmine-phantom/server'
+require 'phantomjs'
namespace :jasmine do
namespace :phantom do
desc "Run jasmine specs using phantomjs and report the results"
task :ci => "jasmine:require" do
@@ -13,10 +14,10 @@
end
port = Jasmine::Phantom::Server.start
script = File.join File.dirname(__FILE__), 'run-jasmine.js'
- pid = POSIX::Spawn.spawn("phantomjs", script, "http://localhost:#{port}")
+ pid = POSIX::Spawn.spawn(Phantomjs.path, script, "http://localhost:#{port}")
begin
Thread.pass
sleep 0.1
wait_pid, status = Process.waitpid2 pid, Process::WNOHANG