summaryrefslogtreecommitdiff
path: root/test/rexml/test_xpathtext.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-23 21:37:39 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-23 21:37:39 +0000
commitf6327e732fbc8c68dae163401d283924769dee8d (patch)
tree47f2922c8db27b572148164f8de904fa569bd7de /test/rexml/test_xpathtext.rb
parentd1c42e4f341e063d3849a3a9e3622b7261735559 (diff)
Suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rexml/test_xpathtext.rb')
-rw-r--r--test/rexml/test_xpathtext.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rexml/test_xpathtext.rb b/test/rexml/test_xpathtext.rb
index c339398..87441cb 100644
--- a/test/rexml/test_xpathtext.rb
+++ b/test/rexml/test_xpathtext.rb
@@ -14,7 +14,7 @@ class XpathTestCase < Test::Unit::TestCase
def test_text_as_element
node1 = REXML::Element.new('a', @doc)
node2 = REXML::Element.new('b', node1)
- textnode = REXML::Text.new('test', false, node2)
+ REXML::Text.new('test', false, node2)
assert_equal(1, @doc.elements.size, "doc owns 1 element node1")
assert_same(node1, @doc.elements[1], "doc owns 1 element node1")
assert_equal(1, node1.elements.size, "node1 owns 1 element node2")