summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.rb3
-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.rb3
-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.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
39 files changed, 78 insertions, 3 deletions
diff --git a/test/rexml/parse/test_document_type_declaration.rb b/test/rexml/parse/test_document_type_declaration.rb
index 7d527a5..8f5a879 100644
--- a/test/rexml/parse/test_document_type_declaration.rb
+++ b/test/rexml/parse/test_document_type_declaration.rb
@@ -1,6 +1,7 @@
require "test/unit"
require "rexml/document"
+module REXML
class TestParseDocumentTypeDeclaration < Test::Unit::TestCase
private
def xml(internal_subset)
@@ -45,3 +46,4 @@ class TestParseDocumentTypeDeclaration < Test::Unit::TestCase
end
end
end
+end
diff --git a/test/rexml/parse/test_notation_declaration.rb b/test/rexml/parse/test_notation_declaration.rb
index 4568885..1e81c5a 100644
--- a/test/rexml/parse/test_notation_declaration.rb
+++ b/test/rexml/parse/test_notation_declaration.rb
@@ -1,6 +1,7 @@
require 'test/unit'
require 'rexml/document'
+module REXML
class TestParseNotationDeclaration < Test::Unit::TestCase
private
def xml(internal_subset)
@@ -95,3 +96,4 @@ class TestParseNotationDeclaration < Test::Unit::TestCase
end
end
end
+end
diff --git a/test/rexml/parser/test_sax2.rb b/test/rexml/parser/test_sax2.rb
index f836c06..c417d4b 100644
--- a/test/rexml/parser/test_sax2.rb
+++ b/test/rexml/parser/test_sax2.rb
@@ -2,6 +2,7 @@ require "test/unit"
require "rexml/parsers/sax2parser"
require "rexml/sax2listener"
+module REXML
class TestSAX2Parser < Test::Unit::TestCase
class TestDocumentTypeDeclaration < self
private
@@ -198,3 +199,4 @@ class TestSAX2Parser < Test::Unit::TestCase
end
end
end
+end
diff --git a/test/rexml/parser/test_tree.rb b/test/rexml/parser/test_tree.rb
index c1a1dbb..b63722d 100644
--- a/test/rexml/parser/test_tree.rb
+++ b/test/rexml/parser/test_tree.rb
@@ -2,6 +2,7 @@ require "test/unit"
require "rexml/document"
require "rexml/parsers/treeparser"
+module REXML
class TestTreeParser < Test::Unit::TestCase
class TestInvalid < self
def test_unmatched_close_tag
@@ -38,3 +39,4 @@ Last 80 unconsumed characters:
end
end
end
+end
diff --git a/test/rexml/parser/test_ultra_light.rb b/test/rexml/parser/test_ultra_light.rb
index 852aa5b..a970685 100644
--- a/test/rexml/parser/test_ultra_light.rb
+++ b/test/rexml/parser/test_ultra_light.rb
@@ -1,6 +1,7 @@
require "test/unit"
require "rexml/parsers/ultralightparser"
+module REXML
class TestUltraLightParser < Test::Unit::TestCase
class TestDocumentTypeDeclaration < self
def test_entity_declaration
@@ -65,3 +66,4 @@ class TestUltraLightParser < Test::Unit::TestCase
end
end
end
+end
diff --git a/test/rexml/test_attributes.rb b/test/rexml/test_attributes.rb
index f9c0987..ed8d8e1 100644
--- a/test/rexml/test_attributes.rb
+++ b/test/rexml/test_attributes.rb
@@ -1,6 +1,7 @@
require 'test/unit/testcase'
require 'rexml/document'
+module REXML
class AttributesTester < Test::Unit::TestCase
include REXML
def test_accessor
@@ -218,3 +219,4 @@ XML
child.attributes.to_a.collect(&:to_string).sort)
end
end
+end
diff --git a/test/rexml/test_attributes_mixin.rb b/test/rexml/test_attributes_mixin.rb
index f0659eb..03bf198 100644
--- a/test/rexml/test_attributes_mixin.rb
+++ b/test/rexml/test_attributes_mixin.rb
@@ -1,6 +1,7 @@
require 'test/unit'
require 'rexml/document'
+module REXML
class TestAttributes < Test::Unit::TestCase
def setup
@ns_a = "urn:x-test:a"
@@ -27,3 +28,4 @@ class TestAttributes < Test::Unit::TestCase
assert_equal("6", @attributes.get_attribute_ns(@ns_b, "f").value)
end
end
+end
diff --git a/test/rexml/test_changing_encoding.rb b/test/rexml/test_changing_encoding.rb
index fdcc075..c297028 100644
--- a/test/rexml/test_changing_encoding.rb
+++ b/test/rexml/test_changing_encoding.rb
@@ -2,7 +2,7 @@
require 'rexml/encoding'
-
+module REXML
class ChangingEncodings < Test::Unit::TestCase
def initialize a
@u = 'テスト ほげ ふが 美しい'
@@ -41,3 +41,4 @@ class ChangingEncodings < Test::Unit::TestCase
#}
end
end
+end
diff --git a/test/rexml/test_comment.rb b/test/rexml/test_comment.rb
index ebe3eea..2180cf5 100644
--- a/test/rexml/test_comment.rb
+++ b/test/rexml/test_comment.rb
@@ -2,6 +2,7 @@ require "test/unit/testcase"
require 'rexml/document'
+module REXML
module REXMLTest
class CommentTester < Test::Unit::TestCase
# Bug #5278
@@ -23,3 +24,4 @@ module REXMLTest
end
end
end
+end
diff --git a/test/rexml/test_contrib.rb b/test/rexml/test_contrib.rb
index d97b5a7..44f7b8c 100644
--- a/test/rexml/test_contrib.rb
+++ b/test/rexml/test_contrib.rb
@@ -6,6 +6,7 @@ require "rexml/document"
require "rexml/parseexception"
require "rexml/formatters/default"
+module REXML
class ContribTester < Test::Unit::TestCase
include REXMLTestUtils
include REXML
@@ -579,3 +580,4 @@ EOL
end
=end
end
+end
diff --git a/test/rexml/test_core.rb b/test/rexml/test_core.rb
index 7040ad6..7c8e423 100644
--- a/test/rexml/test_core.rb
+++ b/test/rexml/test_core.rb
@@ -11,6 +11,7 @@ require "rexml/undefinednamespaceexception"
require_relative "listener"
+module REXML
class Tester < Test::Unit::TestCase
include REXMLTestUtils
include REXML
@@ -1460,3 +1461,4 @@ ENDXML
REXML::Attribute.new(name, value)
end
end
+end
diff --git a/test/rexml/test_doctype.rb b/test/rexml/test_doctype.rb
index 6473ce1..cc5624b 100644
--- a/test/rexml/test_doctype.rb
+++ b/test/rexml/test_doctype.rb
@@ -1,6 +1,7 @@
require 'test/unit'
require 'rexml/document'
+module REXML
class TestDocTypeAccessor < Test::Unit::TestCase
def setup
@@ -102,3 +103,4 @@ class TestNotationDeclSystem < Test::Unit::TestCase
REXML::NotationDecl.new(@name, "SYSTEM", id, nil)
end
end
+end
diff --git a/test/rexml/test_elements.rb b/test/rexml/test_elements.rb
index e5e209e..878c848 100644
--- a/test/rexml/test_elements.rb
+++ b/test/rexml/test_elements.rb
@@ -1,6 +1,7 @@
require 'test/unit/testcase'
require 'rexml/document'
+module REXML
class ElementsTester < Test::Unit::TestCase
include REXML
def test_accessor
@@ -114,3 +115,4 @@ class ElementsTester < Test::Unit::TestCase
assert_equal 6, r
end
end
+end
diff --git a/test/rexml/test_encoding.rb b/test/rexml/test_encoding.rb
index a3fda1e..799f3f2 100644
--- a/test/rexml/test_encoding.rb
+++ b/test/rexml/test_encoding.rb
@@ -5,6 +5,7 @@ require_relative "rexml_test_utils"
require 'rexml/source'
require 'rexml/document'
+module REXML
class EncodingTester < Test::Unit::TestCase
include REXMLTestUtils
include REXML
@@ -92,3 +93,4 @@ class EncodingTester < Test::Unit::TestCase
assert( utf16[0].kind_of?(REXML::XMLDecl))
end
end
+end
diff --git a/test/rexml/test_entity.rb b/test/rexml/test_entity.rb
index 7b9f394..dfa8688 100644
--- a/test/rexml/test_entity.rb
+++ b/test/rexml/test_entity.rb
@@ -4,6 +4,7 @@ require 'rexml/document'
require 'rexml/entity'
require 'rexml/source'
+module REXML
class EntityTester < Test::Unit::TestCase
def test_parse_general_decl
simple = "<!ENTITY foo 'bar'>"
@@ -185,3 +186,4 @@ XML
entity_filter).to_s)
end
end
+end
diff --git a/test/rexml/test_functions.rb b/test/rexml/test_functions.rb
index 2b14e0a..9e2df8c 100644
--- a/test/rexml/test_functions.rb
+++ b/test/rexml/test_functions.rb
@@ -2,6 +2,7 @@ require "test/unit/testcase"
require "rexml/document"
+module REXML
class FunctionsTester < Test::Unit::TestCase
include REXML
def test_functions
@@ -220,3 +221,4 @@ class FunctionsTester < Test::Unit::TestCase
assert_equal( [REXML::Comment.new("COMMENT A")], m )
end
end
+end
diff --git a/test/rexml/test_functions_number.rb b/test/rexml/test_functions_number.rb
index 3048c8d..ee4e6b4 100644
--- a/test/rexml/test_functions_number.rb
+++ b/test/rexml/test_functions_number.rb
@@ -2,6 +2,7 @@ require 'rexml/document'
require 'test/unit'
require 'rexml/functions'
+module REXML
class TC_Rexml_Functions_Number < Test::Unit::TestCase
def test_functions_number_int
@@ -30,3 +31,4 @@ class TC_Rexml_Functions_Number < Test::Unit::TestCase
# assert_equal(9.13E12, REXML::Functions::number(telem))
#end
end
+end
diff --git a/test/rexml/test_jaxen.rb b/test/rexml/test_jaxen.rb
index 05cb818..19d4063 100644
--- a/test/rexml/test_jaxen.rb
+++ b/test/rexml/test_jaxen.rb
@@ -6,6 +6,7 @@ require "rexml/xpath"
# Harness to test REXML's capabilities against the test suite from Jaxen
# ryan.a.cox@gmail.com
+module REXML
class JaxenTester < Test::Unit::TestCase
include REXMLTestUtils
include REXML
@@ -124,3 +125,4 @@ class JaxenTester < Test::Unit::TestCase
end
end
+end
diff --git a/test/rexml/test_light.rb b/test/rexml/test_light.rb
index 9ce0fb5..250886d 100644
--- a/test/rexml/test_light.rb
+++ b/test/rexml/test_light.rb
@@ -2,6 +2,7 @@ require_relative "rexml_test_utils"
require "rexml/light/node"
require "rexml/parsers/lightparser"
+module REXML
class LightTester < Test::Unit::TestCase
include REXMLTestUtils
include REXML::Light
@@ -102,3 +103,4 @@ class LightTester < Test::Unit::TestCase
end
=end
end
+end
diff --git a/test/rexml/test_lightparser.rb b/test/rexml/test_lightparser.rb
index c32c1b8..0fbf8bc 100644
--- a/test/rexml/test_lightparser.rb
+++ b/test/rexml/test_lightparser.rb
@@ -1,6 +1,7 @@
require_relative 'rexml_test_utils'
require 'rexml/parsers/lightparser'
+module REXML
class LightParserTester < Test::Unit::TestCase
include REXMLTestUtils
include REXML
@@ -10,3 +11,4 @@ class LightParserTester < Test::Unit::TestCase
parser.parse
end
end
+end
diff --git a/test/rexml/test_listener.rb b/test/rexml/test_listener.rb
index 47126eb..a1bbc74 100644
--- a/test/rexml/test_listener.rb
+++ b/test/rexml/test_listener.rb
@@ -5,6 +5,7 @@ require_relative 'rexml_test_utils'
require 'rexml/document'
require 'rexml/streamlistener'
+module REXML
class BaseTester < Test::Unit::TestCase
include REXMLTestUtils
def test_empty
@@ -127,3 +128,4 @@ class REXMLTester < BaseTester
assert_equal( t6.strip, REXML::Document.new(t6).to_s )
end
end
+end
diff --git a/test/rexml/test_martin_fowler.rb b/test/rexml/test_martin_fowler.rb
index 1b29c3d..70d81bd 100644
--- a/test/rexml/test_martin_fowler.rb
+++ b/test/rexml/test_martin_fowler.rb
@@ -1,6 +1,7 @@
require 'test/unit'
require 'rexml/document'
+module REXML
class OrderTester < Test::Unit::TestCase
DOC = <<END
<paper>
@@ -35,3 +36,4 @@ END
assert_equal 'fig4', @figs[3].attributes['src']
end
end
+end
diff --git a/test/rexml/test_namespace.rb b/test/rexml/test_namespace.rb
index f855203..e2bedb9 100644
--- a/test/rexml/test_namespace.rb
+++ b/test/rexml/test_namespace.rb
@@ -2,6 +2,7 @@ require_relative "rexml_test_utils"
require "rexml/document"
+module REXML
class TestNamespace < Test::Unit::TestCase
include REXMLTestUtils
include REXML
@@ -36,3 +37,4 @@ XML
document.root.namespace("xml"))
end
end
+end
diff --git a/test/rexml/test_order.rb b/test/rexml/test_order.rb
index 3fcbf97..fc08249 100644
--- a/test/rexml/test_order.rb
+++ b/test/rexml/test_order.rb
@@ -5,6 +5,7 @@ begin
rescue LoadError
end
+module REXML
class OrderTester < Test::Unit::TestCase
include REXMLTestUtils
@@ -103,3 +104,4 @@ END
}
end if defined?(Zlib::GzipReader)
end
+end
diff --git a/test/rexml/test_preceding_sibling.rb b/test/rexml/test_preceding_sibling.rb
index 632e4da..d3cc0e0 100644
--- a/test/rexml/test_preceding_sibling.rb
+++ b/test/rexml/test_preceding_sibling.rb
@@ -2,6 +2,7 @@
require 'test/unit'
require 'rexml/document'
+module REXML
# 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
@@ -36,3 +37,4 @@ class XPathTesterDd < Test::Unit::TestCase
assert_equal( "<b x='ab01A'><c y='abc01A'>Success</c></b>", arr.join )
end
end
+end
diff --git a/test/rexml/test_pullparser.rb b/test/rexml/test_pullparser.rb
index 03c9564..31ee019 100644
--- a/test/rexml/test_pullparser.rb
+++ b/test/rexml/test_pullparser.rb
@@ -2,6 +2,7 @@ require "test/unit/testcase"
require 'rexml/parsers/pullparser'
+module REXML
class PullParserTester < Test::Unit::TestCase
include REXML
def test_basics
@@ -98,3 +99,4 @@ class PullParserTester < Test::Unit::TestCase
assert_equal( 0, names.length )
end
end
+end
diff --git a/test/rexml/test_rexml_issuezilla.rb b/test/rexml/test_rexml_issuezilla.rb
index 2a12006..3fa1cee 100644
--- a/test/rexml/test_rexml_issuezilla.rb
+++ b/test/rexml/test_rexml_issuezilla.rb
@@ -1,6 +1,7 @@
require_relative 'rexml_test_utils'
require 'rexml/document'
+module REXML
class TestIssuezillaParsing < Test::Unit::TestCase
include REXMLTestUtils
def test_rexml
@@ -12,3 +13,4 @@ class TestIssuezillaParsing < Test::Unit::TestCase
end
end
end
+end
diff --git a/test/rexml/test_sax.rb b/test/rexml/test_sax.rb
index 4a9db40..20920f7 100644
--- a/test/rexml/test_sax.rb
+++ b/test/rexml/test_sax.rb
@@ -3,6 +3,7 @@ require 'rexml/sax2listener'
require 'rexml/parsers/sax2parser'
require 'rexml/document'
+module REXML
class SAX2Tester < Test::Unit::TestCase
include REXMLTestUtils
include REXML
@@ -276,4 +277,4 @@ end
class MySAX2Listener
include REXML::SAX2Listener
end
-
+end
diff --git a/test/rexml/test_stream.rb b/test/rexml/test_stream.rb
index 0ae1bc6..7f270e9 100644
--- a/test/rexml/test_stream.rb
+++ b/test/rexml/test_stream.rb
@@ -3,6 +3,7 @@ require "rexml/document"
require 'rexml/streamlistener'
require 'stringio'
+module REXML
class MyListener
include REXML::StreamListener
end
@@ -125,3 +126,4 @@ class RequestReader
def doctype_end
end
end
+end
diff --git a/test/rexml/test_text.rb b/test/rexml/test_text.rb
index 81bc56b..69d68f3 100644
--- a/test/rexml/test_text.rb
+++ b/test/rexml/test_text.rb
@@ -1,5 +1,6 @@
require "rexml/text"
+module REXML
class TextTester < Test::Unit::TestCase
include REXML
@@ -17,3 +18,4 @@ class TextTester < Test::Unit::TestCase
assert_equal("original\nappend1\nappend2\nappend3\nappend4\n", text.to_s)
end
end
+end
diff --git a/test/rexml/test_ticket_80.rb b/test/rexml/test_ticket_80.rb
index 629a213..c494ff5 100644
--- a/test/rexml/test_ticket_80.rb
+++ b/test/rexml/test_ticket_80.rb
@@ -9,6 +9,7 @@
require 'test/unit'
require 'rexml/document'
+module REXML
class Ticket80 < Test::Unit::TestCase
@@xmlstr = '<?xml version="1.0"?>
@@ -50,6 +51,7 @@ class Ticket80 < Test::Unit::TestCase
end
end
+end
#------------------------------------------------------------------------------
# end of rexml_test.rb
diff --git a/test/rexml/test_validation_rng.rb b/test/rexml/test_validation_rng.rb
index 3643f0c..8563dfc 100644
--- a/test/rexml/test_validation_rng.rb
+++ b/test/rexml/test_validation_rng.rb
@@ -3,6 +3,7 @@ require "test/unit/testcase"
require "rexml/document"
require "rexml/validation/relaxng"
+module REXML
class RNGValidation < Test::Unit::TestCase
include REXML
@@ -788,3 +789,4 @@ class RNGValidation < Test::Unit::TestCase
assert_nothing_raised { parser.parse }
end
end
+end
diff --git a/test/rexml/test_xml_declaration.rb b/test/rexml/test_xml_declaration.rb
index eb717bf..8f99f25 100644
--- a/test/rexml/test_xml_declaration.rb
+++ b/test/rexml/test_xml_declaration.rb
@@ -6,6 +6,7 @@
require "rexml/document"
require "test/unit"
+module REXML
class TestXmlDeclaration < Test::Unit::TestCase
def setup
xml = <<-'END_XML'
@@ -31,3 +32,4 @@ class TestXmlDeclaration < Test::Unit::TestCase
assert_kind_of(REXML::Element, @xml_declaration.next_sibling.next_sibling)
end
end
+end
diff --git a/test/rexml/xpath/test_attribute.rb b/test/rexml/xpath/test_attribute.rb
index 81a39bb..666dcfb 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 d2981b3..7733e56 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 26cd3f7..0882efc 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 db7a2ef..c3cdb0d 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 5c196b9..ce1596b 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 c6a8691..6521653 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