add and use api_djepva_up?
This commit is contained in:
parent
e994738a2e
commit
7b33963a67
4 changed files with 12 additions and 3 deletions
|
@ -85,7 +85,7 @@ describe Champs::RNAController, type: :controller do
|
|||
let(:body) { File.read('spec/fixtures/files/api_entreprise/associations.json') }
|
||||
|
||||
before do
|
||||
expect(APIEntrepriseService).to receive(:api_up?).and_return(false)
|
||||
expect(APIEntrepriseService).to receive(:api_djepva_up?).and_return(false)
|
||||
end
|
||||
|
||||
subject! { get :show, params: params, format: :turbo_stream }
|
||||
|
|
|
@ -52,7 +52,7 @@ RSpec.describe RNAChampAssociationFetchableConcern do
|
|||
let(:status) { 503 }
|
||||
let(:body) { File.read('spec/fixtures/files/api_entreprise/associations.json') }
|
||||
|
||||
before { expect(APIEntrepriseService).to receive(:api_up?).and_return(false) }
|
||||
before { expect(APIEntrepriseService).to receive(:api_djepva_up?).and_return(false) }
|
||||
|
||||
it_behaves_like "an association fetcher", false, :network_error, 'W595001988', nil
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue