summaryrefslogtreecommitdiff
path: root/test/xmlrpc
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-25 23:12:50 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-25 23:12:50 +0000
commit37679ee584e409088a2f083594e3c4ccba486e13 (patch)
treeea8390a11414859640d50b21293a2190d99f73ce /test/xmlrpc
parenta967f738c83b960f23f5b04403a17ca37f049e25 (diff)
supress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/xmlrpc')
-rw-r--r--test/xmlrpc/test_webrick_server.rb4
-rw-r--r--test/xmlrpc/webrick_testing.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/xmlrpc/test_webrick_server.rb b/test/xmlrpc/test_webrick_server.rb
index 47fa548..192b5a7 100644
--- a/test/xmlrpc/test_webrick_server.rb
+++ b/test/xmlrpc/test_webrick_server.rb
@@ -88,11 +88,11 @@ class Test_Webrick < Test::Unit::TestCase
# default handler (missing handler)
ok, param = @s.call2('test.nonexisting')
assert_equal false, ok
- assert_equal -99, param.faultCode
+ assert_equal(-99, param.faultCode)
# default handler (wrong number of arguments)
ok, param = @s.call2('test.add', 1, 2, 3)
assert_equal false, ok
- assert_equal -99, param.faultCode
+ assert_equal(-99, param.faultCode)
end
end
diff --git a/test/xmlrpc/webrick_testing.rb b/test/xmlrpc/webrick_testing.rb
index 05c3340..4c0cf89 100644
--- a/test/xmlrpc/webrick_testing.rb
+++ b/test/xmlrpc/webrick_testing.rb
@@ -7,7 +7,7 @@ module WEBrick_Testing
end
def start_server(config={})
- raise "already started" if @__server
+ raise "already started" if defined?(@__server) && @__server
@__started = false
@__server_thread = Thread.new {