test(champ value): test compute of champ value for regions tdc

This commit is contained in:
Eric Leroy-Terquem 2023-09-13 10:20:34 +02:00
parent cebeffb195
commit 345729a159

View file

@ -76,6 +76,12 @@ describe Logic::ChampValue do
it { is_expected.to eq(true) } it { is_expected.to eq(true) }
end end
context 'region tdc' do
let(:champ) { create(:champ_regions, value: 'La Réunion') }
it { is_expected.to eq('04') }
end
describe 'errors' do describe 'errors' do
let(:champ) { create(:champ) } let(:champ) { create(:champ) }