factorize departements and regions options
This commit is contained in:
parent
aa8ce15c2a
commit
08fb49d176
13 changed files with 27 additions and 26 deletions
|
@ -123,7 +123,7 @@ describe Conditions::ChampsConditionsComponent, type: :component do
|
|||
let(:regions) { create(:type_de_champ_regions) }
|
||||
let(:upper_tdcs) { [regions] }
|
||||
let(:condition) { empty_operator(champ_value(regions.stable_id), constant(true)) }
|
||||
let(:region_options) { APIGeoService.regions.map { "#{_1[:code]} – #{_1[:name]}" } }
|
||||
let(:region_options) { APIGeoService.regions.map { _1[:name] } }
|
||||
|
||||
it do
|
||||
expect(page).to have_select('type_de_champ[condition_form][rows][][operator_name]', with_options: ['Est'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue