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:
parent
dc1f3b4220
commit
5fc88eb6a2
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue