Make #to_params return blank hashes if we have no data

This commit is contained in:
gregoirenovel 2018-03-19 14:47:56 +01:00
parent 0022ea71c5
commit caf2e50954
6 changed files with 7 additions and 7 deletions

View file

@ -79,6 +79,6 @@ describe ApiEntreprise::EtablissementAdapter do
.to_return(body: 'Fake body', status: 404)
end
it { expect(subject).to be_nil }
it { expect(subject).to eq({}) }
end
end

View file

@ -19,7 +19,7 @@ describe ApiEntreprise::RNAAdapter do
let(:body) { '' }
let(:status) { '404' }
it { is_expected.to eq(nil) }
it { is_expected.to eq({}) }
end
it { expect(subject).to be_an_instance_of(Hash) }