test(champ value): test compute of champ value for communes tdc
This commit is contained in:
parent
ccc932f924
commit
cdeddc6e1e
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 'commune tdc' do
|
||||
let(:champ) { create(:champ_communes, value: 'Rueil-Malmaison', value_json: { code_postal: '92500', code_departement: '92' }) }
|
||||
|
||||
it { is_expected.to eq('92') }
|
||||
end
|
||||
|
||||
context 'region tdc' do
|
||||
let(:champ) { create(:champ_regions, value: 'La Réunion') }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue