Add special config to avoid a inconsistant LoadError

Error is
```
Failure/Error: @app.call(env)
     LoadError:
       Unable to autoload constant Api::V0::OrderCyclesController, expected /Users/jibees/dev/openfoodnetwork/app/controllers/api/v0/order_cycles_controller.rb to define it
```
This commit is contained in:
Jean-Baptiste Bellet
2021-04-29 15:31:24 +02:00
parent 5085501f89
commit 5a3771fc42

View File

@@ -161,6 +161,12 @@ 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)