spec: fix private type de champ repetition
This commit is contained in:
parent
64175db4dd
commit
0fc71afc29
1 changed files with 6 additions and 3 deletions
|
@ -642,12 +642,15 @@ describe Instructeurs::DossiersController, type: :controller do
|
|||
|
||||
describe "#update_annotations" do
|
||||
let(:procedure) do
|
||||
create(:procedure, :published, types_de_champ_private: [
|
||||
procedure = create(:procedure, :published, types_de_champ_private: [
|
||||
build(:type_de_champ_multiple_drop_down_list, position: 0),
|
||||
build(:type_de_champ_linked_drop_down_list, position: 1),
|
||||
build(:type_de_champ_datetime, position: 2),
|
||||
build(:type_de_champ_repetition, :with_types_de_champ, position: 3)
|
||||
build(:type_de_champ_datetime, position: 2)
|
||||
], instructeurs: instructeurs)
|
||||
|
||||
create(:type_de_champ_repetition, :with_types_de_champ, procedure: procedure, position: 3, private: true)
|
||||
|
||||
procedure
|
||||
end
|
||||
let(:dossier) { create(:dossier, :en_construction, :with_populated_annotations, procedure: procedure) }
|
||||
let(:another_instructeur) { create(:instructeur) }
|
||||
|
|
Loading…
Reference in a new issue