Add tests for siret with whitespaces

This commit is contained in:
Guillaume Lazzara 2016-05-24 15:43:05 +02:00
parent d9b94568b2
commit 63cf35a748
2 changed files with 14 additions and 3 deletions

View file

@ -10,6 +10,6 @@ class Siret
before_validation :remove_whitespace
def remove_whitespace
siret.delete!(' ')
siret.delete!(' ') unless siret.nil?
end
end