test/answer_test.rb in whois-1.0.12 vs test/answer_test.rb in whois-1.1.0
- old
+ new
@@ -75,9 +75,16 @@
answer = @klass.new(@server, @parts)
assert_equal @content, answer.content
end
+ def test_contacts
+ answer = @klass.new(@server, @parts)
+ answer.parser.expects(:contacts).returns([])
+ assert_equal [], answer.contacts
+ end
+
+
def test_parser
answer = @klass.new(nil, [Whois::Answer::Part.new("", "whois.nic.it")])
assert_instance_of Whois::Answer::Parser, answer.parser
answer = @klass.new(nil, [])
\ No newline at end of file