mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Use puma in the test suite and remove server errors hack
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user