mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 22:54:47 +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
|
def test_invalid_without_domain
|
||||||
@nameserver.domain = nil
|
@nameserver.domain = nil
|
||||||
@nameserver.validate
|
|
||||||
assert @nameserver.invalid?
|
assert @nameserver.invalid?
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_invalid_without_hostname
|
def test_invalid_without_hostname
|
||||||
@nameserver.hostname = nil
|
@nameserver.hostname = ''
|
||||||
@nameserver.validate
|
|
||||||
assert @nameserver.invalid?
|
assert @nameserver.invalid?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue