summaryrefslogtreecommitdiff
path: root/test/xmlrpc/test_parser.rb
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-26 06:44:48 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-26 06:44:48 +0000
commitc0f09a8a351a380f377ab3544ea859f4464d27e5 (patch)
treed72e971523c284d32b40df3023a107c29a80eb94 /test/xmlrpc/test_parser.rb
parent6e7544f132d2903cf88f7f41208913d940068be8 (diff)
* lib/xmlrpc/parser.rb (FaultException): fix to_s and inspect
* test/xmlrpc/parser.rb: test for the above Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/xmlrpc/test_parser.rb')
-rw-r--r--test/xmlrpc/test_parser.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/xmlrpc/test_parser.rb b/test/xmlrpc/test_parser.rb
index 1c50eaed46e..0619e87e675 100644
--- a/test/xmlrpc/test_parser.rb
+++ b/test/xmlrpc/test_parser.rb
@@ -65,6 +65,12 @@ module GenericParserTest
assert_equal(fault.faultCode, 4)
assert_equal(fault.faultString, "an error message")
end
+
+ def test_fault_message
+ fault = XMLRPC::FaultException.new(1234, 'an error message')
+ assert_equal('an error message', fault.to_s)
+ assert_equal('#<XMLRPC::FaultException: an error message>', fault.inspect)
+ end
end
# create test class for each installed parser