test/answer/parser/whois.nic.tv_test.rb in whois-1.0.4 vs test/answer/parser/whois.nic.tv_test.rb in whois-1.0.5
- old
+ new
@@ -108,17 +108,18 @@
assert_equal Time.parse("2010-04-21"),
@klass.new(load_part('/registered.txt')).expires_on
assert_equal nil,
@klass.new(load_part('/available.txt')).expires_on
end
-
+
def test_registrar
assert_equal nil,
@klass.new(load_part('/registered.txt')).registrar
assert_equal nil,
@klass.new(load_part('/available.txt')).registrar
end
-
+
+
def test_nameservers
parser = @klass.new(load_part('/registered.txt'))
expected = %w( ns1.slicehost.net ns2.slicehost.net )
assert_equal expected, parser.nameservers
assert_equal expected, parser.instance_eval { @nameservers }
\ No newline at end of file