We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 592a4df + cda29bd commit 8780bd1Copy full SHA for 8780bd1
1 file changed
test/test_parser.rb
@@ -60,12 +60,10 @@ def test_parseMethodCall
60
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
67
- assert_equal(fault.faultCode, 4)
68
- assert_equal(fault.faultString, "an error message")
+ assert_equal(flag, false)
+ assert_kind_of(XMLRPC::FaultException, fault, "must be an instance of class XMLRPC::FaultException")
+ assert_equal(fault.faultCode, 4)
+ assert_equal(fault.faultString, "an error message")
69
end
70
71
def test_fault_message
0 commit comments