feat(routing): use only department codes in routing rules

This commit is contained in:
Eric Leroy-Terquem 2023-08-29 11:35:39 +02:00
parent 4e6788919f
commit ca25788f07
6 changed files with 22 additions and 21 deletions

View file

@ -74,7 +74,7 @@ describe RoutingEngine, type: :model do
context 'with a matching rule' do
before do
gi_2.update(routing_rule: ds_eq(champ_value(departements_tdc.stable_id), constant('43 Haute-Loire')))
gi_2.update(routing_rule: ds_eq(champ_value(departements_tdc.stable_id), constant('43')))
dossier.champs.first.update(value: 'Haute-Loire')
end