mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
using validation for only person names
This commit is contained in:
parent
f927ee1cf7
commit
aa7cf1d1b3
3 changed files with 7 additions and 1 deletions
|
@ -40,6 +40,11 @@ class ContactTest < ActiveJob::TestCase
|
|||
assert contact.valid?
|
||||
contact.name = '# "¤ #" ¤ "?'
|
||||
assert contact.invalid?
|
||||
|
||||
contact.country_code = 'FI'
|
||||
contact.ident_type = Contact::ORG
|
||||
contact.ident = '1234'
|
||||
assert contact.valid?
|
||||
end
|
||||
|
||||
def test_validates_code_format
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue