Simplify ApiAdresse
This commit is contained in:
parent
a841a517df
commit
8b4ba42f15
4 changed files with 5 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue