Remove restclient

This commit is contained in:
Paul Chavard 2020-03-05 13:50:38 +01:00
parent 258e6efcad
commit c281347da1
18 changed files with 64 additions and 48 deletions

View file

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

View file

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