mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Remove dependency on Webrick for QUnit tests
This commit is contained in:
@@ -3,7 +3,6 @@ desc "Runs the qunit test suite"
|
||||
task "qunit:test" => :environment do
|
||||
|
||||
require "rack"
|
||||
require "webrick"
|
||||
|
||||
unless %x{which phantomjs > /dev/null 2>&1}
|
||||
abort "PhantomJS is not installed. Download from http://phantomjs.org"
|
||||
@@ -12,7 +11,6 @@ task "qunit:test" => :environment do
|
||||
port = ENV['TEST_SERVER_PORT'] || 60099
|
||||
server = Thread.new do
|
||||
Rack::Server.start(:config => "config.ru",
|
||||
:Logger => WEBrick::Log.new("/dev/null"),
|
||||
:AccessLog => [],
|
||||
:Port => port)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user