Group API Entreprise mock responses in a folder
This commit is contained in:
parent
7ae5e8ce52
commit
dc28e79ab4
13 changed files with 21 additions and 21 deletions
|
@ -9,7 +9,7 @@ describe ApiEntreprise::EtablissementAdapter do
|
|||
|
||||
before do
|
||||
stub_request(:get, /https:\/\/entreprise.api.gouv.fr\/v2\/etablissements\/#{siret}?.*token=/)
|
||||
.to_return(body: File.read('spec/support/files/etablissement.json', status: 200))
|
||||
.to_return(body: File.read('spec/support/files/api_entreprise/etablissements.json', status: 200))
|
||||
end
|
||||
|
||||
it '#to_params class est une Hash ?' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue