Merge pull request #3482 from tchak/fix-champ-spec

Fix champ spec
This commit is contained in:
Pierre de La Morinerie 2019-02-20 16:36:12 +01:00 committed by GitHub
commit 8085704d9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)