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
1 changed files with 2 additions and 8 deletions

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
##