Skip to content

Commit

Permalink
Silence log messages from the capybara server
Browse files Browse the repository at this point in the history
Puma is taken as the default rack server, but until
rspec/rspec-rails#1897 is solved we should
stick to the proposed workaround.
  • Loading branch information
elia committed Jan 23, 2020
1 parent e759105 commit a4362e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
require 'spree/testing_support/order_walkthrough'
require 'spree/testing_support/capybara_ext'

# A workaround for https://github.com/rspec/rspec-rails/issues/1897
Capybara.server = :puma, { Silent: true }

require 'capybara-screenshot/rspec'
Capybara.save_path = ENV['CIRCLE_ARTIFACTS'] if ENV['CIRCLE_ARTIFACTS']
Capybara.exact = true
Expand Down

0 comments on commit a4362e0

Please sign in to comment.