add ChampColumn
This commit is contained in:
parent
a5b8b936d5
commit
d03d5d0dae
7 changed files with 208 additions and 184 deletions
|
@ -25,7 +25,7 @@ describe Instructeurs::ColumnFilterValueComponent, type: :component do
|
|||
let(:types_de_champ_public) { [{ type: :drop_down_list, libelle: 'Votre ville', options: ['Paris', 'Lyon', 'Marseille'] }] }
|
||||
let(:procedure) { create(:procedure, :published, types_de_champ_public:) }
|
||||
let(:drop_down_stable_id) { procedure.active_revision.types_de_champ.first.stable_id }
|
||||
let(:column) { Column.new(procedure_id:, table: 'type_de_champ', scope: nil, column: drop_down_stable_id) }
|
||||
let(:column) { procedure.find_column(label: 'Votre ville') }
|
||||
|
||||
it 'find most recent tdc' do
|
||||
is_expected.to eq(['Paris', 'Lyon', 'Marseille'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue