From 5a3771fc4242bcedf623f28f5d0ef6c0f35f9048 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Thu, 29 Apr 2021 15:31:24 +0200 Subject: [PATCH] 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 ``` --- spec/features/consumer/shopping/shopping_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/features/consumer/shopping/shopping_spec.rb b/spec/features/consumer/shopping/shopping_spec.rb index c0ec640554..590afc8202 100644 --- a/spec/features/consumer/shopping/shopping_spec.rb +++ b/spec/features/consumer/shopping/shopping_spec.rb @@ -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)