[Fix #2258] Validate options for linked dropdown menus

This commit is contained in:
Frederic Merizen 2018-09-12 15:19:05 +02:00
parent b521095010
commit 998754ab73
4 changed files with 82 additions and 6 deletions

View file

@ -54,7 +54,7 @@ FactoryBot.define do
end
factory :type_de_champ_linked_drop_down_list do
type_champ { TypeDeChamp.type_champs.fetch(:linked_drop_down_list) }
drop_down_list { create(:drop_down_list) }
drop_down_list { create(:drop_down_list, value: "--primary--\nsecondary\n") }
end
factory :type_de_champ_pays do
type_champ { TypeDeChamp.type_champs.fetch(:pays) }