source service supports unknown scope
This commit is contained in:
parent
ac60d6c5a1
commit
35c7f05a0a
2 changed files with 7 additions and 0 deletions
|
@ -31,6 +31,12 @@ describe APIParticulier::Services::SourcesService do
|
|||
|
||||
it { is_expected.to match(cnaf_allocataires_and_enfants) }
|
||||
end
|
||||
|
||||
context 'when a procedure has an unknown scope' do
|
||||
let(:api_particulier_scopes) { ['unknown_scope'] }
|
||||
|
||||
it { is_expected.to match({}) }
|
||||
end
|
||||
end
|
||||
|
||||
describe '#sanitize' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue