mirror of
https://github.com/discourse/discourse.git
synced 2025-04-13 21:42:27 +08:00
Better ENV name for QUnit's seed.
This commit is contained in:
parent
6bf3bee473
commit
aabac55edd
@ -47,7 +47,7 @@ task "qunit:test", [:timeout, :qunit_path] => :environment do |_, args|
|
||||
test_path = "#{Rails.root}/vendor/assets/javascripts"
|
||||
qunit_path = args[:qunit_path] || "/qunit"
|
||||
cmd = "node #{test_path}/run-qunit.js http://localhost:#{port}#{qunit_path}"
|
||||
options = { seed: (ENV["SEED"] || Random.new.seed) }
|
||||
options = { seed: (ENV["QUNIT_SEED"] || Random.new.seed) }
|
||||
|
||||
%w{module filter qunit_skip_core qunit_single_plugin}.each do |arg|
|
||||
options[arg] = ENV[arg.upcase] if ENV[arg.upcase].present?
|
||||
|
Loading…
x
Reference in New Issue
Block a user