1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Remove default Thin handler. Closes #920

This commit is contained in:
Jonas Nicklas 2012-12-31 11:51:57 +01:00
parent 70458987e5
commit 5b164d4f1c

View file

@ -175,14 +175,8 @@ module Capybara
# @param [Fixnum] port The port to run the application on
#
def run_default_server(app, port)
begin
require 'rack/handler/thin'
Thin::Logging.silent = true
Rack::Handler::Thin.run(app, :Port => port)
rescue LoadError
require 'rack/handler/webrick'
Rack::Handler::WEBrick.run(app, :Port => port, :AccessLog => [], :Logger => WEBrick::Log::new(nil, 0))
end
require 'rack/handler/webrick'
Rack::Handler::WEBrick.run(app, :Port => port, :AccessLog => [], :Logger => WEBrick::Log::new(nil, 0))
end
##