summaryrefslogtreecommitdiff
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.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rexml/test_xpathtext.rb b/test/rexml/test_xpathtext.rb
index 0ae48acffa7..c3393987f2c 100644
--- a/test/rexml/test_xpathtext.rb
+++ b/test/rexml/test_xpathtext.rb
@@ -53,8 +53,8 @@ class XpathTestCase < Test::Unit::TestCase
# why isn't the text's parent node2?
# Also look at Comment, etc.
assert_same(node2, textnode.parent)
- comment = REXML::Comment.new('Test comment', node2)
- assert_same(node2, comment.parent)
+ comment = REXML::Comment.new('Test comment', node2)
+ assert_same(node2, comment.parent)
end
def test_ancestors
@@ -62,7 +62,7 @@ class XpathTestCase < Test::Unit::TestCase
node2 = REXML::Element.new('b', node1)
textnode = REXML::Text.new('test', false, node2)
#textnode.parent = node2 # should be unnecessary
- assert_same node2, textnode.parent
+ assert_same node2, textnode.parent
nodes = @doc.get_elements('//b/ancestor::*')
assert_equal(1, nodes.size, "<b> has one element ancestor")
nodes = @doc.get_elements('//b/ancestor::node()')