refactor(type_de_champ): cleanup type predicate methods

This commit is contained in:
Paul Chavard 2024-11-07 12:38:03 +01:00
parent e84071a14a
commit dc6bad40fe
No known key found for this signature in database
19 changed files with 50 additions and 161 deletions

View file

@ -60,7 +60,7 @@ describe Procedure::ErrorsSummary, type: :component do
let(:validation_context) { :types_de_champ_public_editor }
before do
drop_down_public = procedure.draft_revision.types_de_champ_public.find(&:drop_down_list?)
drop_down_public = procedure.draft_revision.types_de_champ_public.find(&:any_drop_down_list?)
drop_down_public.update!(drop_down_options: [])
subject
end