summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 12:07:40 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 12:07:40 +0000
commit28e78bf7f2ff7a5b3b168b77ca297d8ed475675d (patch)
tree2603da6363f88cecc09059778a020c9f11db8416 /test
parenteffcb9a712ead5e0cb0e30a42fff263b44cb0752 (diff)
* test/rexml/: Use REXMLTests as wrapping module for REXML tests.
I avoid using the same module for library in test because it provides "include REXML" environment in test. Normally, users don't use REXML on "include REXML" environment. So I don't want to write tests on "include REXML" environment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/rexml/parse/test_document_type_declaration.rb2
-rw-r--r--test/rexml/parse/test_notation_declaration.rb2
-rw-r--r--test/rexml/parser/test_sax2.rb2
-rw-r--r--test/rexml/parser/test_tree.rb2
-rw-r--r--test/rexml/parser/test_ultra_light.rb2
-rw-r--r--test/rexml/test_attributes.rb2
-rw-r--r--test/rexml/test_attributes_mixin.rb2
-rw-r--r--test/rexml/test_changing_encoding.rb2
-rw-r--r--test/rexml/test_comment.rb2
-rw-r--r--test/rexml/test_contrib.rb2
-rw-r--r--test/rexml/test_core.rb2
-rw-r--r--test/rexml/test_doctype.rb2
-rw-r--r--test/rexml/test_elements.rb2
-rw-r--r--test/rexml/test_encoding.rb2
-rw-r--r--test/rexml/test_entity.rb2
-rw-r--r--test/rexml/test_functions.rb2
-rw-r--r--test/rexml/test_functions_number.rb2
-rw-r--r--test/rexml/test_jaxen.rb2
-rw-r--r--test/rexml/test_light.rb2
-rw-r--r--test/rexml/test_lightparser.rb2
-rw-r--r--test/rexml/test_listener.rb2
-rw-r--r--test/rexml/test_martin_fowler.rb2
-rw-r--r--test/rexml/test_namespace.rb2
-rw-r--r--test/rexml/test_order.rb2
-rw-r--r--test/rexml/test_preceding_sibling.rb2
-rw-r--r--test/rexml/test_pullparser.rb2
-rw-r--r--test/rexml/test_rexml_issuezilla.rb2
-rw-r--r--test/rexml/test_sax.rb2
-rw-r--r--test/rexml/test_stream.rb2
-rw-r--r--test/rexml/test_text.rb2
-rw-r--r--test/rexml/test_ticket_80.rb2
-rw-r--r--test/rexml/test_validation_rng.rb2
-rw-r--r--test/rexml/test_xml_declaration.rb2
-rw-r--r--test/rexml/xpath/test_attribute.rb2
-rw-r--r--test/rexml/xpath/test_axis_preceding_sibling.rb2
-rw-r--r--test/rexml/xpath/test_base.rb2
-rw-r--r--test/rexml/xpath/test_node.rb2
-rw-r--r--test/rexml/xpath/test_predicate.rb2
-rw-r--r--test/rexml/xpath/test_text.rb2
39 files changed, 39 insertions, 39 deletions
diff --git a/test/rexml/parse/test_document_type_declaration.rb b/test/rexml/parse/test_document_type_declaration.rb
index 8f5a879..fb7cee5 100644
--- a/test/rexml/parse/test_document_type_declaration.rb
+++ b/test/rexml/parse/test_document_type_declaration.rb
@@ -1,7 +1,7 @@
require "test/unit"
require "rexml/document"
-module REXML
+module REXMLTests
class TestParseDocumentTypeDeclaration < Test::Unit::TestCase
private
def xml(internal_subset)
diff --git a/test/rexml/parse/test_notation_declaration.rb b/test/rexml/parse/test_notation_declaration.rb
index 1e81c5a..ecce44a 100644
--- a/test/rexml/parse/test_notation_declaration.rb
+++ b/test/rexml/parse/test_notation_declaration.rb
@@ -1,7 +1,7 @@
require 'test/unit'
require 'rexml/document'
-module REXML
+module REXMLTests
class TestParseNotationDeclaration < Test::Unit::TestCase
private
def xml(internal_subset)
diff --git a/test/rexml/parser/test_sax2.rb b/test/rexml/parser/test_sax2.rb
index c417d4b..dba5eab 100644
--- a/test/rexml/parser/test_sax2.rb
+++ b/test/rexml/parser/test_sax2.rb
@@ -2,7 +2,7 @@ require "test/unit"
require "rexml/parsers/sax2parser"
require "rexml/sax2listener"
-module REXML
+module REXMLTests
class TestSAX2Parser < Test::Unit::TestCase
class TestDocumentTypeDeclaration < self
private
diff --git a/test/rexml/parser/test_tree.rb b/test/rexml/parser/test_tree.rb
index b63722d..fa010f6 100644
--- a/test/rexml/parser/test_tree.rb
+++ b/test/rexml/parser/test_tree.rb
@@ -2,7 +2,7 @@ require "test/unit"
require "rexml/document"
require "rexml/parsers/treeparser"
-module REXML
+module REXMLTests
class TestTreeParser < Test::Unit::TestCase
class TestInvalid < self
def test_unmatched_close_tag
diff --git a/test/rexml/parser/test_ultra_light.rb b/test/rexml/parser/test_ultra_light.rb
index a970685..4960fc1 100644
--- a/test/rexml/parser/test_ultra_light.rb
+++ b/test/rexml/parser/test_ultra_light.rb
@@ -1,7 +1,7 @@
require "test/unit"
require "rexml/parsers/ultralightparser"
-module REXML
+module REXMLTests
class TestUltraLightParser < Test::Unit::TestCase
class TestDocumentTypeDeclaration < self
def test_entity_declaration
diff --git a/test/rexml/test_attributes.rb b/test/rexml/test_attributes.rb
index ed8d8e1..fea4ee7 100644
--- a/test/rexml/test_attributes.rb
+++ b/test/rexml/test_attributes.rb
@@ -1,7 +1,7 @@
require 'test/unit/testcase'
require 'rexml/document'
-module REXML
+module REXMLTests
class AttributesTester < Test::Unit::TestCase
include REXML
def test_accessor
diff --git a/test/rexml/test_attributes_mixin.rb b/test/rexml/test_attributes_mixin.rb
index 03bf198..a92c783 100644
--- a/test/rexml/test_attributes_mixin.rb
+++ b/test/rexml/test_attributes_mixin.rb
@@ -1,7 +1,7 @@
require 'test/unit'
require 'rexml/document'
-module REXML
+module REXMLTests
class TestAttributes < Test::Unit::TestCase
def setup
@ns_a = "urn:x-test:a"
diff --git a/test/rexml/test_changing_encoding.rb b/test/rexml/test_changing_encoding.rb
index c297028..0e0cd6c 100644
--- a/test/rexml/test_changing_encoding.rb
+++ b/test/rexml/test_changing_encoding.rb
@@ -2,7 +2,7 @@
require 'rexml/encoding'
-module REXML
+module REXMLTests
class ChangingEncodings < Test::Unit::TestCase
def initialize a
@u = 'テスト ほげ ふが 美しい'
diff --git a/test/rexml/test_comment.rb b/test/rexml/test_comment.rb
index ebe3eea..d5e78a5 100644
--- a/test/rexml/test_comment.rb
+++ b/test/rexml/test_comment.rb
@@ -2,7 +2,7 @@ require "test/unit/testcase"
require 'rexml/document'
-module REXMLTest
+module REXMLTests
class CommentTester < Test::Unit::TestCase
# Bug #5278
def test_hyphen_end_line_in_doctype
diff --git a/test/rexml/test_contrib.rb b/test/rexml/test_contrib.rb
index 44f7b8c..ea357b1 100644
--- a/test/rexml/test_contrib.rb
+++ b/test/rexml/test_contrib.rb
@@ -6,7 +6,7 @@ require "rexml/document"
require "rexml/parseexception"
require "rexml/formatters/default"
-module REXML
+module REXMLTests
class ContribTester < Test::Unit::TestCase
include REXMLTestUtils
include REXML
diff --git a/test/rexml/test_core.rb b/test/rexml/test_core.rb
index 7c8e423..8bba293 100644
--- a/test/rexml/test_core.rb
+++ b/test/rexml/test_core.rb
@@ -11,7 +11,7 @@ require "rexml/undefinednamespaceexception"
require_relative "listener"
-module REXML
+module REXMLTests
class Tester < Test::Unit::TestCase
include REXMLTestUtils
include REXML
diff --git a/test/rexml/test_doctype.rb b/test/rexml/test_doctype.rb
index cc5624b..63c2ed9 100644
--- a/test/rexml/test_doctype.rb
+++ b/test/rexml/test_doctype.rb
@@ -1,7 +1,7 @@
require 'test/unit'
require 'rexml/document'
-module REXML
+module REXMLTests
class TestDocTypeAccessor < Test::Unit::TestCase
def setup
diff --git a/test/rexml/test_elements.rb b/test/rexml/test_elements.rb
index 878c848..6a9b3bb 100644
--- a/test/rexml/test_elements.rb
+++ b/test/rexml/test_elements.rb
@@ -1,7 +1,7 @@
require 'test/unit/testcase'
require 'rexml/document'
-module REXML
+module REXMLTests
class ElementsTester < Test::Unit::TestCase
include REXML
def test_accessor
diff --git a/test/rexml/test_encoding.rb b/test/rexml/test_encoding.rb
index 799f3f2..a084067 100644
--- a/test/rexml/test_encoding.rb
+++ b/test/rexml/test_encoding.rb
@@ -5,7 +5,7 @@ require_relative "rexml_test_utils"
require 'rexml/source'
require 'rexml/document'
-module REXML
+module REXMLTests
class EncodingTester < Test::Unit::TestCase
include REXMLTestUtils
include REXML
diff --git a/test/rexml/test_entity.rb b/test/rexml/test_entity.rb
index dfa8688..0027223 100644
--- a/test/rexml/test_entity.rb
+++ b/test/rexml/test_entity.rb
@@ -4,7 +4,7 @@ require 'rexml/document'
require 'rexml/entity'
require 'rexml/source'
-module REXML
+module REXMLTests
class EntityTester < Test::Unit::TestCase
def test_parse_general_decl
simple = "<!ENTITY foo 'bar'>"
diff --git a/test/rexml/test_functions.rb b/test/rexml/test_functions.rb
index 9e2df8c..da9a986 100644
--- a/test/rexml/test_functions.rb
+++ b/test/rexml/test_functions.rb
@@ -2,7 +2,7 @@ require "test/unit/testcase"
require "rexml/document"
-module REXML
+module REXMLTests
class FunctionsTester < Test::Unit::TestCase
include REXML
def test_functions
diff --git a/test/rexml/test_functions_number.rb b/test/rexml/test_functions_number.rb
index ee4e6b4..c2124a5 100644
--- a/test/rexml/test_functions_number.rb
+++ b/test/rexml/test_functions_number.rb
@@ -2,7 +2,7 @@ require 'rexml/document'
require 'test/unit'
require 'rexml/functions'
-module REXML
+module REXMLTests
class TC_Rexml_Functions_Number < Test::Unit::TestCase
def test_functions_number_int
diff --git a/test/rexml/test_jaxen.rb b/test/rexml/test_jaxen.rb
index 19d4063..a5053aa 100644
--- a/test/rexml/test_jaxen.rb
+++ b/test/rexml/test_jaxen.rb
@@ -6,7 +6,7 @@ require "rexml/xpath"
# Harness to test REXML's capabilities against the test suite from Jaxen
# ryan.a.cox@gmail.com
-module REXML
+module REXMLTests
class JaxenTester < Test::Unit::TestCase
include REXMLTestUtils
include REXML
diff --git a/test/rexml/test_light.rb b/test/rexml/test_light.rb
index 250886d..c47b9a6 100644
--- a/test/rexml/test_light.rb
+++ b/test/rexml/test_light.rb
@@ -2,7 +2,7 @@ require_relative "rexml_test_utils"
require "rexml/light/node"
require "rexml/parsers/lightparser"
-module REXML
+module REXMLTests
class LightTester < Test::Unit::TestCase
include REXMLTestUtils
include REXML::Light
diff --git a/test/rexml/test_lightparser.rb b/test/rexml/test_lightparser.rb
index 0fbf8bc..d492e0b 100644
--- a/test/rexml/test_lightparser.rb
+++ b/test/rexml/test_lightparser.rb
@@ -1,7 +1,7 @@
require_relative 'rexml_test_utils'
require 'rexml/parsers/lightparser'
-module REXML
+module REXMLTests
class LightParserTester < Test::Unit::TestCase
include REXMLTestUtils
include REXML
diff --git a/test/rexml/test_listener.rb b/test/rexml/test_listener.rb
index a1bbc74..3d5c17e 100644
--- a/test/rexml/test_listener.rb
+++ b/test/rexml/test_listener.rb
@@ -5,7 +5,7 @@ require_relative 'rexml_test_utils'
require 'rexml/document'
require 'rexml/streamlistener'
-module REXML
+module REXMLTests
class BaseTester < Test::Unit::TestCase
include REXMLTestUtils
def test_empty
diff --git a/test/rexml/test_martin_fowler.rb b/test/rexml/test_martin_fowler.rb
index 70d81bd..3025c74 100644
--- a/test/rexml/test_martin_fowler.rb
+++ b/test/rexml/test_martin_fowler.rb
@@ -1,7 +1,7 @@
require 'test/unit'
require 'rexml/document'
-module REXML
+module REXMLTests
class OrderTester < Test::Unit::TestCase
DOC = <<END
<paper>
diff --git a/test/rexml/test_namespace.rb b/test/rexml/test_namespace.rb
index e2bedb9..01d496f 100644
--- a/test/rexml/test_namespace.rb
+++ b/test/rexml/test_namespace.rb
@@ -2,7 +2,7 @@ require_relative "rexml_test_utils"
require "rexml/document"
-module REXML
+module REXMLTests
class TestNamespace < Test::Unit::TestCase
include REXMLTestUtils
include REXML
diff --git a/test/rexml/test_order.rb b/test/rexml/test_order.rb
index fc08249..9559c46 100644
--- a/test/rexml/test_order.rb
+++ b/test/rexml/test_order.rb
@@ -5,7 +5,7 @@ begin
rescue LoadError
end
-module REXML
+module REXMLTests
class OrderTester < Test::Unit::TestCase
include REXMLTestUtils
diff --git a/test/rexml/test_preceding_sibling.rb b/test/rexml/test_preceding_sibling.rb
index d3cc0e0..c05eedb 100644
--- a/test/rexml/test_preceding_sibling.rb
+++ b/test/rexml/test_preceding_sibling.rb
@@ -2,7 +2,7 @@
require 'test/unit'
require 'rexml/document'
-module REXML
+module REXMLTests
# daz - for report by Dan Kohn in:
# http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/156328
class XPathTesterDd < Test::Unit::TestCase
diff --git a/test/rexml/test_pullparser.rb b/test/rexml/test_pullparser.rb
index 31ee019..83751f2 100644
--- a/test/rexml/test_pullparser.rb
+++ b/test/rexml/test_pullparser.rb
@@ -2,7 +2,7 @@ require "test/unit/testcase"
require 'rexml/parsers/pullparser'
-module REXML
+module REXMLTests
class PullParserTester < Test::Unit::TestCase
include REXML
def test_basics
diff --git a/test/rexml/test_rexml_issuezilla.rb b/test/rexml/test_rexml_issuezilla.rb
index 3fa1cee..59649ae 100644
--- a/test/rexml/test_rexml_issuezilla.rb
+++ b/test/rexml/test_rexml_issuezilla.rb
@@ -1,7 +1,7 @@
require_relative 'rexml_test_utils'
require 'rexml/document'
-module REXML
+module REXMLTests
class TestIssuezillaParsing < Test::Unit::TestCase
include REXMLTestUtils
def test_rexml
diff --git a/test/rexml/test_sax.rb b/test/rexml/test_sax.rb
index 20920f7..5cf1ec1 100644
--- a/test/rexml/test_sax.rb
+++ b/test/rexml/test_sax.rb
@@ -3,7 +3,7 @@ require 'rexml/sax2listener'
require 'rexml/parsers/sax2parser'
require 'rexml/document'
-module REXML
+module REXMLTests
class SAX2Tester < Test::Unit::TestCase
include REXMLTestUtils
include REXML
diff --git a/test/rexml/test_stream.rb b/test/rexml/test_stream.rb
index 7f270e9..d9e622f 100644
--- a/test/rexml/test_stream.rb
+++ b/test/rexml/test_stream.rb
@@ -3,7 +3,7 @@ require "rexml/document"
require 'rexml/streamlistener'
require 'stringio'
-module REXML
+module REXMLTests
class MyListener
include REXML::StreamListener
end
diff --git a/test/rexml/test_text.rb b/test/rexml/test_text.rb
index 69d68f3..9aa0e2f 100644
--- a/test/rexml/test_text.rb
+++ b/test/rexml/test_text.rb
@@ -1,6 +1,6 @@
require "rexml/text"
-module REXML
+module REXMLTests
class TextTester < Test::Unit::TestCase
include REXML
diff --git a/test/rexml/test_ticket_80.rb b/test/rexml/test_ticket_80.rb
index c494ff5..bd58881 100644
--- a/test/rexml/test_ticket_80.rb
+++ b/test/rexml/test_ticket_80.rb
@@ -9,7 +9,7 @@
require 'test/unit'
require 'rexml/document'
-module REXML
+module REXMLTests
class Ticket80 < Test::Unit::TestCase
@@xmlstr = '<?xml version="1.0"?>
diff --git a/test/rexml/test_validation_rng.rb b/test/rexml/test_validation_rng.rb
index 8563dfc..67abe20 100644
--- a/test/rexml/test_validation_rng.rb
+++ b/test/rexml/test_validation_rng.rb
@@ -3,7 +3,7 @@ require "test/unit/testcase"
require "rexml/document"
require "rexml/validation/relaxng"
-module REXML
+module REXMLTests
class RNGValidation < Test::Unit::TestCase
include REXML
diff --git a/test/rexml/test_xml_declaration.rb b/test/rexml/test_xml_declaration.rb
index 8f99f25..a7b7023 100644
--- a/test/rexml/test_xml_declaration.rb
+++ b/test/rexml/test_xml_declaration.rb
@@ -6,7 +6,7 @@
require "rexml/document"
require "test/unit"
-module REXML
+module REXMLTests
class TestXmlDeclaration < Test::Unit::TestCase
def setup
xml = <<-'END_XML'
diff --git a/test/rexml/xpath/test_attribute.rb b/test/rexml/xpath/test_attribute.rb
index 666dcfb..3139104 100644
--- a/test/rexml/xpath/test_attribute.rb
+++ b/test/rexml/xpath/test_attribute.rb
@@ -1,7 +1,7 @@
require 'test/unit'
require 'rexml/document'
-module REXML
+module REXMLTests
class TestXPathAttribute < Test::Unit::TestCase
def setup
@xml = <<-XML
diff --git a/test/rexml/xpath/test_axis_preceding_sibling.rb b/test/rexml/xpath/test_axis_preceding_sibling.rb
index 7733e56..faba177 100644
--- a/test/rexml/xpath/test_axis_preceding_sibling.rb
+++ b/test/rexml/xpath/test_axis_preceding_sibling.rb
@@ -1,7 +1,7 @@
require "test/unit/testcase"
require "rexml/document"
-module REXML
+module REXMLTests
class TestXPathAxisPredcedingSibling < Test::Unit::TestCase
include REXML
SOURCE = <<-EOF
diff --git a/test/rexml/xpath/test_base.rb b/test/rexml/xpath/test_base.rb
index 0882efc..54559c9 100644
--- a/test/rexml/xpath/test_base.rb
+++ b/test/rexml/xpath/test_base.rb
@@ -2,7 +2,7 @@ require_relative "../rexml_test_utils"
require "rexml/document"
-module REXML
+module REXMLTests
class TestXPathBase < Test::Unit::TestCase
include REXMLTestUtils
include REXML
diff --git a/test/rexml/xpath/test_node.rb b/test/rexml/xpath/test_node.rb
index c3cdb0d..f0109be 100644
--- a/test/rexml/xpath/test_node.rb
+++ b/test/rexml/xpath/test_node.rb
@@ -4,7 +4,7 @@ require_relative "../rexml_test_utils"
require "rexml/document"
-module REXML
+module REXMLTests
class TestXPathNode < Test::Unit::TestCase
def matches(xml, xpath)
document = REXML::Document.new(xml)
diff --git a/test/rexml/xpath/test_predicate.rb b/test/rexml/xpath/test_predicate.rb
index ce1596b..4cbf244 100644
--- a/test/rexml/xpath/test_predicate.rb
+++ b/test/rexml/xpath/test_predicate.rb
@@ -3,7 +3,7 @@ require "rexml/document"
require "rexml/xpath"
require "rexml/parsers/xpathparser"
-module REXML
+module REXMLTests
class TestXPathPredicate < Test::Unit::TestCase
include REXML
SRC=<<-EOL
diff --git a/test/rexml/xpath/test_text.rb b/test/rexml/xpath/test_text.rb
index 6521653..cf65130 100644
--- a/test/rexml/xpath/test_text.rb
+++ b/test/rexml/xpath/test_text.rb
@@ -3,7 +3,7 @@ require 'rexml/document'
require 'rexml/element'
require 'rexml/xpath'
-module REXML
+module REXMLTests
class TestXPathText < Test::Unit::TestCase
def setup
@doc = REXML::Document.new