specs: fix a flaky repetitions test

The test would sometime fail when the two fields are created in a
different order than expected.
This commit is contained in:
Pierre de La Morinerie 2019-10-24 11:11:57 +02:00
parent dc1f3b4220
commit 5fc88eb6a2

View file

@ -119,8 +119,8 @@ describe TagsSubstitutionConcern, type: :model do
let(:types_de_champ) do
[
create(:type_de_champ_repetition, libelle: 'Répétition', types_de_champ: [
create(:type_de_champ_text, libelle: 'Nom'),
create(:type_de_champ_text, libelle: 'Prénom')
create(:type_de_champ_text, libelle: 'Nom', order_place: 1),
create(:type_de_champ_text, libelle: 'Prénom', order_place: 2)
])
]
end