Merge pull request from betagouv/fix_dubious_procedure_spec

fix(spec): fix dubious procedure spec
This commit is contained in:
LeSim 2022-10-11 12:08:03 +02:00 committed by GitHub
commit 03fa98a8a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,8 @@ describe DubiousProcedure, type: :model do
it 'returns dubious procedures' do
expect(subject.first.id).to eq(procedure.id)
expect(subject.first.libelle).to eq(procedure.libelle)
expect(subject.first.dubious_champs).to eq("num de securite sociale, stp - t'aurais une carte bancaire ?")
expect(subject.first.dubious_champs).to include("num de securite sociale, stp")
expect(subject.first.dubious_champs).to include("t'aurais une carte bancaire ?")
end
context 'and a whitelisted procedure' do