summaryrefslogtreecommitdiff
path: root/test/rexml/xpath
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 10:21:10 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 10:21:10 +0000
commit13a8d735d9de444d08e6cfaf61e5a765d6d7ec7a (patch)
tree6989084700fb465f04dc4e54ce803649dbb24e08 /test/rexml/xpath
parent1c35277c2bfecaf1128f05d8644b247fbd5ef461 (diff)
Wrap REXML test classes by REXML module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46166 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.rb3
-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, 12 insertions, 1 deletions
diff --git a/test/rexml/xpath/test_attribute.rb b/test/rexml/xpath/test_attribute.rb
index 81a39bb9d27..666dcfbf151 100644
--- a/test/rexml/xpath/test_attribute.rb
+++ b/test/rexml/xpath/test_attribute.rb
@@ -1,6 +1,7 @@
require 'test/unit'
require 'rexml/document'
+module REXML
class TestXPathAttribute < Test::Unit::TestCase
def setup
@xml = <<-XML
@@ -25,3 +26,4 @@ class TestXPathAttribute < Test::Unit::TestCase
assert_equal(["child2"], children.collect(&:text))
end
end
+end
diff --git a/test/rexml/xpath/test_axis_preceding_sibling.rb b/test/rexml/xpath/test_axis_preceding_sibling.rb
index d2981b39cff..7733e56a8da 100644
--- a/test/rexml/xpath/test_axis_preceding_sibling.rb
+++ b/test/rexml/xpath/test_axis_preceding_sibling.rb
@@ -1,6 +1,7 @@
require "test/unit/testcase"
require "rexml/document"
+module REXML
class TestXPathAxisPredcedingSibling < Test::Unit::TestCase
include REXML
SOURCE = <<-EOF
@@ -35,4 +36,4 @@ class TestXPathAxisPredcedingSibling < Test::Unit::TestCase
assert_equal "3", prev.attributes["id"]
end
end
-
+end
diff --git a/test/rexml/xpath/test_base.rb b/test/rexml/xpath/test_base.rb
index 26cd3f7ba7a..0882efc5ea5 100644
--- a/test/rexml/xpath/test_base.rb
+++ b/test/rexml/xpath/test_base.rb
@@ -2,6 +2,7 @@ require_relative "../rexml_test_utils"
require "rexml/document"
+module REXML
class TestXPathBase < Test::Unit::TestCase
include REXMLTestUtils
include REXML
@@ -1077,3 +1078,4 @@ EOF
assert_equal(["/"], hrefs, "Bug #3842 [ruby-core:32447]")
end
end
+end
diff --git a/test/rexml/xpath/test_node.rb b/test/rexml/xpath/test_node.rb
index db7a2efca66..c3cdb0dc9b0 100644
--- a/test/rexml/xpath/test_node.rb
+++ b/test/rexml/xpath/test_node.rb
@@ -4,6 +4,7 @@ require_relative "../rexml_test_utils"
require "rexml/document"
+module REXML
class TestXPathNode < Test::Unit::TestCase
def matches(xml, xpath)
document = REXML::Document.new(xml)
@@ -38,3 +39,4 @@ class TestXPathNode < Test::Unit::TestCase
end
end
end
+end
diff --git a/test/rexml/xpath/test_predicate.rb b/test/rexml/xpath/test_predicate.rb
index 5c196b941b7..ce1596b7563 100644
--- a/test/rexml/xpath/test_predicate.rb
+++ b/test/rexml/xpath/test_predicate.rb
@@ -3,6 +3,7 @@ require "rexml/document"
require "rexml/xpath"
require "rexml/parsers/xpathparser"
+module REXML
class TestXPathPredicate < Test::Unit::TestCase
include REXML
SRC=<<-EOL
@@ -78,3 +79,4 @@ XML
m )
end
end
+end
diff --git a/test/rexml/xpath/test_text.rb b/test/rexml/xpath/test_text.rb
index c6a8691f55b..6521653ccd5 100644
--- a/test/rexml/xpath/test_text.rb
+++ b/test/rexml/xpath/test_text.rb
@@ -3,6 +3,7 @@ require 'rexml/document'
require 'rexml/element'
require 'rexml/xpath'
+module REXML
class TestXPathText < Test::Unit::TestCase
def setup
@doc = REXML::Document.new
@@ -70,3 +71,4 @@ class TestXPathText < Test::Unit::TestCase
assert nodes[1].kind_of?(REXML::Document)
end
end
+end