Fix champ spec

fix #3257
This commit is contained in:
Paul Chavard 2019-02-20 16:26:12 +01:00
parent c1b47adbc2
commit a7ba01a02a

View file

@ -426,6 +426,10 @@ describe Champ do
expect(champ.champs.first.dossier).to eq(dossier)
# Make champs ordered
champ_integer_number.type_de_champ.update(order_place: 0)
champ_text.type_de_champ.update(order_place: 1)
champ.champs << champ_integer_number
row = champ.reload.rows.first
expect(row.size).to eq(1)