Use puma in the test suite and remove server errors hack

This commit is contained in:
Matt-Yorkley
2021-07-26 18:47:17 +01:00
parent 4fe49fe559
commit bd041a2e09
2 changed files with 1 additions and 7 deletions

View File

@@ -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

View File

@@ -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)