Simplify ApiAdresse

This commit is contained in:
gregoirenovel 2018-10-15 18:23:32 +02:00
parent a841a517df
commit 8b4ba42f15
4 changed files with 5 additions and 18 deletions

View file

@ -8,7 +8,7 @@ describe ApiAdresse::Geocodeur do
end
context 'when RestClient::Exception' do
before do
allow_any_instance_of(ApiAdresse::API).to receive(:call).and_raise(RestClient::Exception)
allow(ApiAdresse::API).to receive(:call).and_raise(RestClient::Exception)
end
it 'return nil' do
expect(described_class.convert_adresse_to_point(address)).to be_nil