Permet de déposer un dossier lorsqu'un menu déroulant lié obligatoire n'a pas de valeur (car la liste est légitimement vide) dans le second champ.
This commit is contained in:
parent
81fd91ce41
commit
65b4bcf3a1
2 changed files with 15 additions and 3 deletions
|
@ -91,7 +91,14 @@ describe Champs::LinkedDropDownListChamp do
|
|||
end
|
||||
|
||||
context 'when there is a secondary value' do
|
||||
before { subject.secondary_value = 'Primary' }
|
||||
before { subject.secondary_value = 'Secondary' }
|
||||
|
||||
it { is_expected.not_to be_mandatory_and_blank }
|
||||
end
|
||||
|
||||
context 'when there is nothing to select for the secondary value' do
|
||||
let(:drop_down_list) { build(:drop_down_list, value: "--A--\nAbbott\nAbelard\n--B--\n--C--\nCynthia") }
|
||||
before { subject.primary_value = 'B' }
|
||||
|
||||
it { is_expected.not_to be_mandatory_and_blank }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue