feat (api particulier): add Pole Emploi support to sources service
This commit is contained in:
parent
62bc2efbaa
commit
a24cf18c9d
2 changed files with 26 additions and 1 deletions
|
@ -47,6 +47,21 @@ describe APIParticulier::Services::SourcesService do
|
|||
it { is_expected.to match(dgfip_avis_imposition_et_adresse) }
|
||||
end
|
||||
|
||||
context 'when a procedure has a pole_emploi_identite and a pole_emploi_adresse scopes' do
|
||||
let(:api_particulier_scopes) { ['pole_emploi_identite', 'pole_emploi_adresse'] }
|
||||
|
||||
let(:pole_emploi_identite_et_adresse) do
|
||||
{
|
||||
'pole_emploi' => {
|
||||
'identite' => ['identifiant', 'civilite', 'nom', 'nomUsage', 'prenom', 'sexe', 'dateNaissance'],
|
||||
'adresse' => ['INSEECommune', 'codePostal', 'localite', 'ligneVoie', 'ligneComplementDestinataire', 'ligneComplementAdresse', 'ligneComplementDistribution', 'ligneNom']
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
it { is_expected.to match(pole_emploi_identite_et_adresse) }
|
||||
end
|
||||
|
||||
context 'when a procedure has an unknown scope' do
|
||||
let(:api_particulier_scopes) { ['unknown_scope'] }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue