mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 19:11:16 +08:00
fix malformed qunit url
this removes the space between the query string and the URL ``` $MODULE='Acceptance: Search' rake qunit:test\[20000\] .... Running: {"module":"Acceptance: Search"} ... http://localhost:60099/qunit?module=Acceptance%3A%20Search 20000 ``` The timeout value seems to work fine.
This commit is contained in:
@ -35,7 +35,7 @@ task "qunit:test", [:timeout] => :environment do |_, args|
|
|||||||
begin
|
begin
|
||||||
success = true
|
success = true
|
||||||
test_path = "#{Rails.root}/vendor/assets/javascripts"
|
test_path = "#{Rails.root}/vendor/assets/javascripts"
|
||||||
cmd = "phantomjs #{test_path}/run-qunit.js http://localhost:#{port}/qunit #{args[:timeout]}"
|
cmd = "phantomjs #{test_path}/run-qunit.js http://localhost:#{port}/qunit"
|
||||||
|
|
||||||
options = {}
|
options = {}
|
||||||
|
|
||||||
@ -47,6 +47,10 @@ task "qunit:test", [:timeout] => :environment do |_, args|
|
|||||||
cmd += "?#{options.to_query.gsub('+', '%20')}"
|
cmd += "?#{options.to_query.gsub('+', '%20')}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if args[:timeout].present?
|
||||||
|
cmd += " #{args[:timeout]}"
|
||||||
|
end
|
||||||
|
|
||||||
# wait for server to respond, will exception out on failure
|
# wait for server to respond, will exception out on failure
|
||||||
tries = 0
|
tries = 0
|
||||||
begin
|
begin
|
||||||
|
Reference in New Issue
Block a user