DEV: Move `run-qunit.js` out of the vendor directory

This commit is contained in:
David Taylor 2018-12-03 16:16:37 +00:00
parent 923692d45a
commit 404acef6e3
3 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ module Autospec
end
end
cmd = "node #{Rails.root}/vendor/assets/javascripts/run-qunit.js \"#{qunit_url}\" 3000000 ./tmp/qunit_result"
cmd = "node #{Rails.root}/test/run-qunit.js \"#{qunit_url}\" 3000000 ./tmp/qunit_result"
@pid = Process.spawn(cmd)
_, status = Process.wait2(@pid)

View File

@ -50,7 +50,7 @@ task "qunit:test", [:timeout, :qunit_path] => :environment do |_, args|
begin
success = true
test_path = "#{Rails.root}/vendor/assets/javascripts"
test_path = "#{Rails.root}/test"
qunit_path = args[:qunit_path] || "/qunit"
cmd = "node #{test_path}/run-qunit.js http://localhost:#{port}#{qunit_path}"
options = { seed: (ENV["QUNIT_SEED"] || Random.new.seed) }