aboutsummaryrefslogtreecommitdiffstats
path: root/test/rexml/test_xpathtext.rb
diff options
context:
space:
mode:
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 c3393987f2..87441cb6d5 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")