diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-23 21:37:39 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-23 21:37:39 +0000 |
commit | f6327e732fbc8c68dae163401d283924769dee8d (patch) | |
tree | 47f2922c8db27b572148164f8de904fa569bd7de /test/rexml/test_xpathtext.rb | |
parent | d1c42e4f341e063d3849a3a9e3622b7261735559 (diff) | |
download | ruby-f6327e732fbc8c68dae163401d283924769dee8d.tar.gz |
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.rb | 2 |
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") |