test(champ value): test compute of champ value for regions tdc
This commit is contained in:
parent
cebeffb195
commit
345729a159
1 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,12 @@ describe Logic::ChampValue do
|
|||
it { is_expected.to eq(true) }
|
||||
end
|
||||
|
||||
context 'region tdc' do
|
||||
let(:champ) { create(:champ_regions, value: 'La Réunion') }
|
||||
|
||||
it { is_expected.to eq('04') }
|
||||
end
|
||||
|
||||
describe 'errors' do
|
||||
let(:champ) { create(:champ) }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue