correctif(ChampDepartement): gere les departement a 3 codes

This commit is contained in:
Martin 2022-12-27 12:10:50 +01:00
parent 48c80e9387
commit 186d4e6539
7 changed files with 22 additions and 4 deletions

View file

@ -9,7 +9,10 @@ describe '20220705164551_remove_unused_champs' do
rake_task.invoke
end
before { champ_repetition.champs.first.update(type_de_champ: create(:type_de_champ)) }
before do
allow(APIGeoService).to receive(:departement_name).with('01').and_return('Ain')
champ_repetition.champs.first.update(type_de_champ: create(:type_de_champ))
end
after { rake_task.reenable }
describe 'remove_unused_champs' do