We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0827f75 commit 0947e13Copy full SHA for 0947e13
1 file changed
test/test_parser.rb
@@ -61,9 +61,7 @@ def test_parseMethodCall
61
def test_fault
62
flag, fault = @p.parseMethodResponse(@fault_doc)
63
assert_equal(flag, false)
64
- unless fault.is_a? XMLRPC::FaultException
65
- assert(false, "must be an instance of class XMLRPC::FaultException")
66
- end
+ assert_kind_of(XMLRPC::FaultException, fault, "must be an instance of class XMLRPC::FaultException")
67
assert_equal(fault.faultCode, 4)
68
assert_equal(fault.faultString, "an error message")
69
end
0 commit comments