Merge pull request #8703 from govpf/feature/fix-dossier-controller-spec

Fix dossier controller spec
This commit is contained in:
Colin Darie 2023-02-28 12:11:30 +00:00 committed by GitHub
commit 7e13d58db2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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