Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions test/test_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,10 @@ def test_parseMethodCall

def test_fault
flag, fault = @p.parseMethodResponse(@fault_doc)
assert_equal(flag, false)
unless fault.is_a? XMLRPC::FaultException
assert(false, "must be an instance of class XMLRPC::FaultException")
end
assert_equal(fault.faultCode, 4)
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")
end

def test_fault_message
Expand Down