Merge pull request #9374 from demarches-simplifiees/fix-spec-siren

Corrige un test api entreprise
This commit is contained in:
krichtof 2023-07-31 09:30:25 +00:00 committed by GitHub
commit 0b46e64753
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,6 +108,7 @@ describe APIEntreprise::API do
let(:siren) { procedure.service.siret[0..8] }
let(:dinum_siret) { "13002526500013" }
it 'send default recipient' do
ENV["API_ENTREPRISE_DEFAULT_SIRET"] = dinum_siret
subject
expect(WebMock).to have_requested(:get, /https:\/\/entreprise.api.gouv.fr\/v3\/insee\/sirene\/unites_legales\/#{siren}/).with(query: hash_including({ recipient: dinum_siret }))
end