test/answer/parser/whois.nic.tv_test.rb in whois-0.9.0 vs test/answer/parser/whois.nic.tv_test.rb in whois-1.0.0
- old
+ new
@@ -89,34 +89,38 @@
assert !@klass.new(load_part('/available.txt')).registered?
end
def test_created_on
- assert_equal Time.parse("2009-04-21 00:00:00 +0200"),
+ assert_equal Time.parse("2009-04-21"),
@klass.new(load_part('/registered.txt')).created_on
assert_equal nil,
@klass.new(load_part('/available.txt')).created_on
end
def test_updated_on
- assert_equal Time.parse("2009-11-19 00:00:00 +0100"),
+ assert_equal Time.parse("2009-11-19"),
@klass.new(load_part('/registered.txt')).updated_on
assert_equal nil,
@klass.new(load_part('/available.txt')).updated_on
end
def test_expires_on
- assert_equal Time.parse("2010-04-21 00:00:00 +0200"),
+ 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
+ assert_equal %w(ns1.slicehost.net ns2.slicehost.net),
+ @klass.new(load_part('/registered.txt')).nameservers
end
end
\ No newline at end of file