fix(api_token): improuve flaky test
This commit is contained in:
parent
dbd658d2bb
commit
48733a1d15
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ describe APIToken, type: :model do
|
|||
end
|
||||
|
||||
it do
|
||||
expect(api_token.procedure_ids).to eq([procedure.id, other_procedure.id])
|
||||
expect(api_token.procedure_ids).to match_array([procedure.id, other_procedure.id])
|
||||
expect(api_token.allowed_procedure_ids).to eq([procedure.id])
|
||||
expect(api_token.context).to eq(administrateur_id: administrateur.id, procedure_ids: [procedure.id], write_access: true)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue