mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 08:43:25 +08:00
DEV: Move run-qunit.js
out of the vendor directory
This commit is contained in:
parent
923692d45a
commit
404acef6e3
|
@ -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)
|
||||
|
|
|
@ -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) }
|
||||
|
|
Loading…
Reference in New Issue
Block a user