From 5b164d4f1c256f24b6c42475ea15466fcd3f012b Mon Sep 17 00:00:00 2001 From: Jonas Nicklas Date: Mon, 31 Dec 2012 11:51:57 +0100 Subject: [PATCH] Remove default Thin handler. Closes #920 --- lib/capybara.rb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/capybara.rb b/lib/capybara.rb index 97a8bcfa..9e491f89 100644 --- a/lib/capybara.rb +++ b/lib/capybara.rb @@ -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 ##