fix raison social fetch
This commit is contained in:
parent
498e5d7487
commit
becf4da70a
7 changed files with 29 additions and 0 deletions
|
@ -40,6 +40,9 @@ describe 'Prefilling a dossier (with a POST request):', js: true do
|
|||
stub_request(:get, /https:\/\/entreprise.api.gouv.fr\/v2\/etablissements\/#{siret_value}/)
|
||||
.to_return(status: 200, body: File.read('spec/fixtures/files/api_entreprise/etablissements.json'))
|
||||
|
||||
stub_request(:get, /https:\/\/entreprise.api.gouv.fr\/v2\/entreprises\/#{siret_value[0..8]}/)
|
||||
.to_return(status: 200, body: File.read('spec/fixtures/files/api_entreprise/entreprises.json'))
|
||||
|
||||
VCR.insert_cassette('api_geo_departements')
|
||||
VCR.insert_cassette('api_geo_communes')
|
||||
VCR.insert_cassette('api_geo_epcis')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue