From bd041a2e09afb8c3ad3619b2abacf8c5dffbf924 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Mon, 26 Jul 2021 18:47:17 +0100 Subject: [PATCH] Use puma in the test suite and remove server errors hack --- spec/base_spec_helper.rb | 2 +- spec/features/consumer/shopping/shopping_spec.rb | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/spec/base_spec_helper.rb b/spec/base_spec_helper.rb index 121fac8f27..58b6623a86 100644 --- a/spec/base_spec_helper.rb +++ b/spec/base_spec_helper.rb @@ -36,7 +36,7 @@ WebMock.disable_net_connect!( # in spec/support/ and its subdirectories. Dir[Rails.root.join("spec/support/**/*.rb")].sort.each { |f| require f } -Capybara.server = :webrick +Capybara.server = :puma Capybara.configure do |config| config.match = :prefer_exact diff --git a/spec/features/consumer/shopping/shopping_spec.rb b/spec/features/consumer/shopping/shopping_spec.rb index 00a00ac777..b027b48eef 100644 --- a/spec/features/consumer/shopping/shopping_spec.rb +++ b/spec/features/consumer/shopping/shopping_spec.rb @@ -167,12 +167,6 @@ feature "As a consumer I want to shop with a distributor", js: true do end describe "two order cycles and more than 20 products for each" do - around do |example| - Capybara.raise_server_errors = false - example.run - Capybara.raise_server_errors = true - end - before do 20.times do product = create(:simple_product, supplier: supplier)