FIX qunit test runner for phantomjs 2.0

This commit is contained in:
Régis Hanol
2015-08-25 10:42:19 +02:00
parent 124fc4daf7
commit 294669c856
5 changed files with 31 additions and 23 deletions

View File

@@ -35,7 +35,7 @@ task "qunit:test" => :environment do
begin
success = true
test_path = "#{Rails.root}/vendor/assets/javascripts"
cmd = "phantomjs #{test_path}/run-qunit.js \"http://localhost:#{port}/qunit\""
cmd = "phantomjs #{test_path}/run-qunit.js http://localhost:#{port}/qunit"
# wait for server to respond, will exception out on failure
tries = 0