Skip to content

Commit

Permalink
spec
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSim committed Feb 20, 2025
1 parent 89382ac commit 12d7bcb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/models/procedure_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,19 @@
end
end

context 'with a drop_down_list referentiel' do
let(:procedure) { create(:procedure, types_de_champ_public:, service:) }
let(:types_de_champ_public) { [{ type: :drop_down_list }] }
let(:referentiel) { create(:csv_referentiel, :with_items) }

before do
drop_down_tdc = procedure.draft_revision.types_de_champ_public.first
drop_down_tdc.update!(referentiel:, drop_down_mode: 'advanced')
end

it { is_expected.to be_valid }
end

describe 'feature flag' do
context 'with a feature flag enabled' do
before do
Expand Down

0 comments on commit 12d7bcb

Please sign in to comment.