mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
parent
1b22e17a94
commit
ea2beebde3
1 changed files with 1 additions and 3 deletions
|
@ -11,13 +11,11 @@ class NameserverTest < ActiveSupport::TestCase
|
|||
|
||||
def test_invalid_without_domain
|
||||
@nameserver.domain = nil
|
||||
@nameserver.validate
|
||||
assert @nameserver.invalid?
|
||||
end
|
||||
|
||||
def test_invalid_without_hostname
|
||||
@nameserver.hostname = nil
|
||||
@nameserver.validate
|
||||
@nameserver.hostname = ''
|
||||
assert @nameserver.invalid?
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue