summaryrefslogtreecommitdiff
path: root/test/rexml/xpath
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/rexml/xpath
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/rexml/xpath')
-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
6 files changed, 6 insertions, 6 deletions
diff --git a/test/rexml/xpath/test_attribute.rb b/test/rexml/xpath/test_attribute.rb
index 666dcfbf15..313910489b 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 7733e56a8d..faba177f95 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 0882efc5ea..54559c979f 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 c3cdb0dc9b..f0109be9ff 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 ce1596b756..4cbf244d74 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 6521653ccd..cf65130854 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