summaryrefslogtreecommitdiff
path: root/test/rexml/test_xpath_msw.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rexml/test_xpath_msw.rb')
-rw-r--r--test/rexml/test_xpath_msw.rb14
1 files changed, 5 insertions, 9 deletions
diff --git a/test/rexml/test_xpath_msw.rb b/test/rexml/test_xpath_msw.rb
index b40e366afbf..c03835e2f3e 100644
--- a/test/rexml/test_xpath_msw.rb
+++ b/test/rexml/test_xpath_msw.rb
@@ -1,10 +1,9 @@
require "test/unit/testcase"
-require "test/unit/ui/console/testrunner"
require "rexml/document"
class XPathAxesTester < Test::Unit::TestCase
- include REXML
- SOURCE = <<-EOF
+ include REXML
+ SOURCE = <<-EOF
<a id='1'>
<e id='2'>
<f id='3'/>
@@ -15,9 +14,9 @@ class XPathAxesTester < Test::Unit::TestCase
</a>
EOF
- def setup
- @@doc = Document.new(SOURCE) unless defined? @@doc
- end
+ def setup
+ @@doc = Document.new(SOURCE) unless defined? @@doc
+ end
def test_preceding_sibling_axis
context = XPath.first(@@doc,"/a/e/f[last()]")
@@ -37,6 +36,3 @@ class XPathAxesTester < Test::Unit::TestCase
end
end
-
-#Test::Unit::UI::Console::TestRunner.run(XPathAxesTester.suite)
-