From ebbfd60b30de96920db79fddd4be9efa922b578d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Thu, 27 Oct 2016 23:07:47 +0200 Subject: [PATCH] Use thin as default server --- spec/support/capybara.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb index 63b2527b56..c097a7f007 100644 --- a/spec/support/capybara.rb +++ b/spec/support/capybara.rb @@ -10,6 +10,12 @@ Rails.application.config do config.middleware.use RackSessionAccess::Middleware end +Capybara.register_server :thin do |app, port, host| + require 'rack/handler/thin' + Rack::Handler::Thin.run(app, :Port => port, :Host => host) +end +Capybara.server = :thin + Capybara.register_driver :selenium do |app| require 'selenium/webdriver'