add and use api_insee_up?

This commit is contained in:
simon lehericey 2024-04-05 12:07:40 +02:00
parent 63052ea063
commit e994738a2e
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5
8 changed files with 61 additions and 14 deletions

View file

@ -83,7 +83,7 @@ describe Champs::SiretController, type: :controller do
let(:api_etablissement_status) { 503 }
before do
expect(APIEntrepriseService).to receive(:api_up?).and_return(true)
expect(APIEntrepriseService).to receive(:api_insee_up?).and_return(true)
end
subject! { get :show, params: params, format: :turbo_stream }
@ -102,7 +102,7 @@ describe Champs::SiretController, type: :controller do
let(:api_etablissement_status) { 502 }
before do
expect(APIEntrepriseService).to receive(:api_up?).and_return(false)
expect(APIEntrepriseService).to receive(:api_insee_up?).and_return(false)
end
subject! { get :show, params: params, format: :turbo_stream }