parent_id -> parent_stable_id

This commit is contained in:
simon lehericey 2022-07-02 16:20:42 +02:00
parent 1342356651
commit 5ebaf59fdb
9 changed files with 18 additions and 19 deletions

View file

@ -163,8 +163,8 @@ describe TagsSubstitutionConcern, type: :model do
let(:template) { '--Répétition--' }
let(:repetition) do
repetition_tdc = procedure.active_revision.add_type_de_champ(type_champ: 'repetition', libelle: 'Répétition')
procedure.active_revision.add_type_de_champ(type_champ: 'text', libelle: 'Nom', parent_id: repetition_tdc.stable_id)
procedure.active_revision.add_type_de_champ(type_champ: 'text', libelle: 'Prénom', parent_id: repetition_tdc.stable_id)
procedure.active_revision.add_type_de_champ(type_champ: 'text', libelle: 'Nom', parent_stable_id: repetition_tdc.stable_id)
procedure.active_revision.add_type_de_champ(type_champ: 'text', libelle: 'Prénom', parent_stable_id: repetition_tdc.stable_id)
repetition_tdc
end