mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
parent
00041df311
commit
80327d3447
4 changed files with 17 additions and 2 deletions
|
@ -14,4 +14,10 @@ class NameserverTest < ActiveSupport::TestCase
|
|||
@nameserver.validate
|
||||
assert @nameserver.invalid?
|
||||
end
|
||||
|
||||
def test_invalid_without_hostname
|
||||
@nameserver.hostname = nil
|
||||
@nameserver.validate
|
||||
assert @nameserver.invalid?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue