Skip to content

Commit

Permalink
test(champ value): test compute of champ value for epci tdc
Browse files Browse the repository at this point in the history
  • Loading branch information
E-L-T committed Sep 18, 2023
1 parent 67703c9 commit 0aa0b27
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/models/logic/champ_value_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,19 @@
it { is_expected.to eq('92') }
end

context 'epci tdc' do
let(:champ) { build(:champ_epci, code_departement: '43') }

before do
champ.save!
champ.update_columns(external_id: '244301016', value: 'CC des Sucs')
end

it do
is_expected.to eq('43')
end
end

context 'region tdc' do
let(:champ) { create(:champ_regions, value: 'La Réunion') }

Expand Down

0 comments on commit 0aa0b27

Please sign in to comment.