add and use api_insee_up?
This commit is contained in:
parent
63052ea063
commit
e994738a2e
8 changed files with 61 additions and 14 deletions
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue