From 05bd9df76421b1f455b74f9f664168d4fae3c2d1 Mon Sep 17 00:00:00 2001 From: Elia Schito Date: Thu, 23 Jan 2020 15:49:56 +0100 Subject: [PATCH] Silence log messages from the capybara server Puma is taken as the default rack server, but until https://github.com/rspec/rspec-rails/issues/1897 is solved we should stick to the proposed workaround. --- core/lib/spree/testing_support/capybara_ext.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/lib/spree/testing_support/capybara_ext.rb b/core/lib/spree/testing_support/capybara_ext.rb index c26f166b3b8..69b72f33a4b 100644 --- a/core/lib/spree/testing_support/capybara_ext.rb +++ b/core/lib/spree/testing_support/capybara_ext.rb @@ -162,3 +162,6 @@ def wait_for_ajax RSpec.configure do |c| c.include Spree::TestingSupport::CapybaraExt end + +# A workaround for https://github.com/rspec/rspec-rails/issues/1897 +Capybara.server = :puma, { Silent: true }