mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
Add test
This commit is contained in:
parent
296442e330
commit
bf5c1635c5
1 changed files with 10 additions and 0 deletions
|
@ -31,6 +31,16 @@ class RegistrarTest < ActiveSupport::TestCase
|
|||
assert registrar.invalid?
|
||||
end
|
||||
|
||||
def test_email_format_validation
|
||||
registrar = valid_registrar
|
||||
|
||||
registrar.email = 'invalid'
|
||||
assert registrar.invalid?
|
||||
|
||||
registrar.email = 'valid@email.test'
|
||||
assert registrar.valid?
|
||||
end
|
||||
|
||||
def test_invalid_without_accounting_customer_code
|
||||
registrar = valid_registrar
|
||||
registrar.accounting_customer_code = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue