From 704dbf94db2fe3d48af256b19b348ead41dd4069 Mon Sep 17 00:00:00 2001 From: Christian Lautier <15379878+maatinito@users.noreply.github.com> Date: Sat, 25 Feb 2023 08:32:21 -1000 Subject: [PATCH] Fix dossier controller spec --- spec/controllers/users/dossiers_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/users/dossiers_controller_spec.rb b/spec/controllers/users/dossiers_controller_spec.rb index 57398f090..5e7c57d7e 100644 --- a/spec/controllers/users/dossiers_controller_spec.rb +++ b/spec/controllers/users/dossiers_controller_spec.rb @@ -256,7 +256,7 @@ describe Users::DossiersController, type: :controller do context 'When API-Entreprise is globally down' do let(:api_etablissement_status) { 502 } - let(:api_current_status_response) { File.read('spec/fixtures/files/api_entreprise/current_status.json').tr('200', '502') } + let(:api_current_status_response) { File.read('spec/fixtures/files/api_entreprise/current_status.json').gsub('200', '502') } it "create an etablissement only with SIRET as degraded mode" do dossier.reload