Convert spec to test

#661
This commit is contained in:
Artur Beljajev 2018-01-31 22:48:00 +02:00
parent a8dd176cf6
commit 3ef38768a5
3 changed files with 16 additions and 13 deletions

View file

@ -20,4 +20,8 @@ class NameserverTest < ActiveSupport::TestCase
@nameserver.validate
assert @nameserver.invalid?
end
def test_hostnames
assert_equal %w[ns1.bestnames.test ns2.bestnames.test], Nameserver.hostnames
end
end