test/answer/parser/whois.nic.it_test.rb in whois-1.0.5 vs test/answer/parser/whois.nic.it_test.rb in whois-1.0.6
- old
+ new
@@ -26,14 +26,12 @@
assert_equal "google.it",
@klass.new(load_part('/registered.txt')).domain
end
def test_domain_id
- assert_equal nil,
- @klass.new(load_part('/available.txt')).domain_id
- assert_equal nil,
- @klass.new(load_part('/registered.txt')).domain_id
+ assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/registered.txt')).domain_id }
+ assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/available.txt')).domain_id }
end
def test_status
assert_equal :available,
@@ -46,11 +44,11 @@
assert !@klass.new(load_part('/registered.txt')).available?
assert @klass.new(load_part('/available.txt')).available?
end
def test_registered?
- assert !@klass.new(load_part('/available.txt')).registered?
assert @klass.new(load_part('/registered.txt')).registered?
+ assert !@klass.new(load_part('/available.txt')).registered?
end
# NOTE: Unfortunately, the whois.nic.it response doesn't include TimeZone
def test_created_on
\ No newline at end of file