summaryrefslogtreecommitdiff
path: root/test/xmlrpc
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-03 11:41:53 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-03 11:41:53 +0000
commitddf1d3aaed4d07d8fb00f4c3a81b6a83bd0225e8 (patch)
tree9069d4a6a6733a44e05f58f7ddea265684154e00 /test/xmlrpc
parent438a91c0720ac840dedb64085a8c906f855c7422 (diff)
* test/xmlrpc: Wrap definitions by TestXMLRPC module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/xmlrpc')
-rw-r--r--test/xmlrpc/test_cookie.rb2
-rw-r--r--test/xmlrpc/test_datetime.rb2
-rw-r--r--test/xmlrpc/test_features.rb2
-rw-r--r--test/xmlrpc/test_marshal.rb2
-rw-r--r--test/xmlrpc/test_parser.rb2
-rw-r--r--test/xmlrpc/test_webrick_server.rb2
-rw-r--r--test/xmlrpc/webrick_testing.rb2
7 files changed, 14 insertions, 0 deletions
diff --git a/test/xmlrpc/test_cookie.rb b/test/xmlrpc/test_cookie.rb
index 472027e..51f0be0 100644
--- a/test/xmlrpc/test_cookie.rb
+++ b/test/xmlrpc/test_cookie.rb
@@ -5,6 +5,7 @@ require_relative 'webrick_testing'
require "xmlrpc/server"
require 'xmlrpc/client'
+module TestXMLRPC
class TestCookie < Test::Unit::TestCase
include WEBrick_Testing
@@ -94,3 +95,4 @@ class TestCookie < Test::Unit::TestCase
assert_equal("Hello", @s.call("test.require_authenticate_echo", "Hello"))
end
end
+end
diff --git a/test/xmlrpc/test_datetime.rb b/test/xmlrpc/test_datetime.rb
index 0a84904..d6bb95d 100644
--- a/test/xmlrpc/test_datetime.rb
+++ b/test/xmlrpc/test_datetime.rb
@@ -1,6 +1,7 @@
require 'test/unit'
require "xmlrpc/datetime"
+module TestXMLRPC
class Test_DateTime < Test::Unit::TestCase
def test_new
@@ -157,3 +158,4 @@ class Test_DateTime < Test::Unit::TestCase
end
end
+end
diff --git a/test/xmlrpc/test_features.rb b/test/xmlrpc/test_features.rb
index 0f86706..89c91f2 100644
--- a/test/xmlrpc/test_features.rb
+++ b/test/xmlrpc/test_features.rb
@@ -3,6 +3,7 @@ require "xmlrpc/create"
require "xmlrpc/parser"
require "xmlrpc/config"
+module TestXMLRPC
class Test_Features < Test::Unit::TestCase
def setup
@@ -46,3 +47,4 @@ class Test_Features < Test::Unit::TestCase
end
end
+end
diff --git a/test/xmlrpc/test_marshal.rb b/test/xmlrpc/test_marshal.rb
index ca029d3..34ddfa9 100644
--- a/test/xmlrpc/test_marshal.rb
+++ b/test/xmlrpc/test_marshal.rb
@@ -1,6 +1,7 @@
require 'test/unit'
require "xmlrpc/marshal"
+module TestXMLRPC
class Test_Marshal < Test::Unit::TestCase
# for test_parser_values
class Person
@@ -106,3 +107,4 @@ class Test_Marshal < Test::Unit::TestCase
end
end
+end
diff --git a/test/xmlrpc/test_parser.rb b/test/xmlrpc/test_parser.rb
index 0619e87..5591645 100644
--- a/test/xmlrpc/test_parser.rb
+++ b/test/xmlrpc/test_parser.rb
@@ -3,6 +3,7 @@ require 'xmlrpc/datetime'
require "xmlrpc/parser"
require 'yaml'
+module TestXMLRPC
module GenericParserTest
def datafile(base)
File.join(File.dirname(__FILE__), "data", base)
@@ -89,3 +90,4 @@ XMLRPC::XMLParser.each_installed_parser do |parser|
end
}
end
+end
diff --git a/test/xmlrpc/test_webrick_server.rb b/test/xmlrpc/test_webrick_server.rb
index cadb17c..2c91727 100644
--- a/test/xmlrpc/test_webrick_server.rb
+++ b/test/xmlrpc/test_webrick_server.rb
@@ -7,6 +7,7 @@ require "xmlrpc/server"
require 'xmlrpc/client'
require 'logger'
+module TestXMLRPC
class Test_Webrick < Test::Unit::TestCase
include WEBrick_Testing
@@ -132,3 +133,4 @@ class Test_Webrick < Test::Unit::TestCase
assert_equal "あいうえおかきくけこ", @s.call('test.add', "あいうえお", "かきくけこ")
end
end
+end
diff --git a/test/xmlrpc/webrick_testing.rb b/test/xmlrpc/webrick_testing.rb
index e50a94e..c2a3003 100644
--- a/test/xmlrpc/webrick_testing.rb
+++ b/test/xmlrpc/webrick_testing.rb
@@ -1,5 +1,6 @@
require 'timeout'
+module TestXMLRPC
module WEBrick_Testing
class DummyLog < WEBrick::BasicLog
def initialize() super(self) end
@@ -43,3 +44,4 @@ module WEBrick_Testing
@__server = nil
end
end
+end