Remove restclient
This commit is contained in:
parent
258e6efcad
commit
c281347da1
18 changed files with 64 additions and 48 deletions
|
@ -75,7 +75,7 @@ describe Champs::CarteController, type: :controller do
|
|||
|
||||
allow_any_instance_of(ApiCarto::QuartiersPrioritairesAdapter)
|
||||
.to receive(:results)
|
||||
.and_raise(RestClient::ResourceNotFound)
|
||||
.and_raise(ApiCarto::API::ResourceNotFound)
|
||||
|
||||
post :show, params: params, format: 'js'
|
||||
end
|
||||
|
|
|
@ -59,7 +59,7 @@ describe Champs::SiretController, type: :controller do
|
|||
let(:siret) { '82161143100015' }
|
||||
|
||||
before do
|
||||
allow(controller).to receive(:find_etablissement_with_siret).and_raise(RestClient::RequestFailed)
|
||||
allow(controller).to receive(:find_etablissement_with_siret).and_raise(ApiEntreprise::API::RequestFailed)
|
||||
end
|
||||
|
||||
subject! { get :show, params: params, format: 'js' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue