From 7c38cbcab39e8208c92204bf9d68c52f4dd10334 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Tue, 12 Dec 2023 12:07:26 +0100 Subject: [PATCH] test: fix random failing test --- spec/models/dossier_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/dossier_spec.rb b/spec/models/dossier_spec.rb index 26029fd00..b774349ba 100644 --- a/spec/models/dossier_spec.rb +++ b/spec/models/dossier_spec.rb @@ -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