feat(instruction options management): add routable champs by category

This commit is contained in:
Eric Leroy-Terquem 2024-10-14 18:06:59 +02:00
parent 264594fd58
commit d979bf6c68
No known key found for this signature in database
GPG key ID: 53D8FAECEF207605
5 changed files with 24 additions and 8 deletions

View file

@ -475,4 +475,10 @@ describe TypeDeChamp do
it { expect(subject).to eq('') }
end
end
describe '#humanized_conditionable_types_by_category' do
subject { TypeDeChamp.humanized_conditionable_types_by_category }
it { is_expected.to eq([["« Oui/Non »", "« Case à cocher seule »", "« Choix simple »", "« Choix multiple »"], ["« Nombre entier »", "« Nombre décimal »"], ["« Communes »", "« EPCI »", "« Départements »", "« Régions »", "« Adresse »", "« Pays »"]]) }
end
end