feat(conditional): add include operator
This commit is contained in:
parent
84c52099fb
commit
fcb9b55bc4
7 changed files with 77 additions and 5 deletions
|
@ -49,6 +49,14 @@ describe Logic do
|
|||
|
||||
it { is_expected.to eq(ds_eq(champ_value(drop_down), constant(first_option))) }
|
||||
end
|
||||
|
||||
context 'when multiple dropdown empty operator true' do
|
||||
let(:multiple_drop_down) { create(:type_de_champ_multiple_drop_down_list) }
|
||||
let(:first_option) { multiple_drop_down.drop_down_list_enabled_non_empty_options.first }
|
||||
let(:condition) { empty_operator(champ_value(multiple_drop_down), constant(true)) }
|
||||
|
||||
it { is_expected.to eq(ds_include(champ_value(multiple_drop_down), constant(first_option))) }
|
||||
end
|
||||
end
|
||||
|
||||
describe '.compatible_type?' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue