Remove ChampPublic/ChampPrivate STI

This commit is contained in:
Paul Chavard 2018-02-09 17:38:30 +01:00
parent d432ea7249
commit 52749713ab
16 changed files with 78 additions and 52 deletions

View file

@ -355,13 +355,11 @@ describe NewGestionnaire::DossiersController, type: :controller do
describe "#update_annotations" do
let(:champ_multiple_drop_down_list) do
type_de_champ = TypeDeChamp.create(type_champ: 'multiple_drop_down_list', libelle: 'libelle')
ChampPrivate.create(type_de_champ: type_de_champ)
create(:type_de_champ_private, type_champ: 'multiple_drop_down_list', libelle: 'libelle').champ.create
end
let(:champ_datetime) do
type_de_champ = TypeDeChamp.create(type_champ: 'datetime', libelle: 'libelle')
ChampPrivate.create(type_de_champ: type_de_champ)
create(:type_de_champ_private, type_champ: 'datetime', libelle: 'libelle').champ.create
end
let(:dossier) do