test/answer/parser/whois.iana.org_test.rb in whois-0.9.0 vs test/answer/parser/whois.iana.org_test.rb in whois-1.0.0
- old
+ new
@@ -40,12 +40,10 @@
assert_equal nil,
@klass.new(load_part('/available.txt')).updated_on
end
def test_expires_on
- assert_equal nil,
- @klass.new(load_part('/registered.txt')).expires_on
- assert_equal nil,
- @klass.new(load_part('/available.txt')).expires_on
+ assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/registered.txt')).expires_on }
+ assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/available.txt')).expires_on }
end
end
\ No newline at end of file