test: fix random failing test

This commit is contained in:
Colin Darie 2023-12-12 12:07:26 +01:00
parent c0771ad903
commit 7c38cbcab3
No known key found for this signature in database
GPG key ID: 8C76CADD40253590

View file

@ -2197,7 +2197,7 @@ describe Dossier, type: :model do
let!(:type_de_champ_2) { create(:type_de_champ_textarea, procedure: procedure) }
let(:stable_ids) { [type_de_champ_1.stable_id, type_de_champ_2.stable_id] }
it { expect(subject).to match(dossier.champs_public.joins(:type_de_champ).where(types_de_champ: { stable_id: stable_ids })) }
it { expect(subject).to match_array(dossier.champs_public.joins(:type_de_champ).where(types_de_champ: { stable_id: stable_ids })) }
end
end
end