[Fix #2618] Do not enforce Luhn for La Poste SIRET numbers
This commit is contained in:
parent
940dfe422b
commit
4e4b7c617f
2 changed files with 14 additions and 1 deletions
|
@ -33,6 +33,12 @@ describe Siret, type: :model do
|
|||
it { is_expected.to be_invalid }
|
||||
end
|
||||
|
||||
context 'with a lunh-invalid La Poste siret' do
|
||||
let(:siret) { '35600000018723' }
|
||||
|
||||
it { is_expected.to be_valid }
|
||||
end
|
||||
|
||||
context 'with a valid siret' do
|
||||
let(:siret) { '41816609600051' }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue