summaryrefslogtreecommitdiff
path: root/test/rexml/xpath
diff options
context:
space:
mode:
Diffstat (limited to 'test/rexml/xpath')
-rw-r--r--test/rexml/xpath/test_text.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rexml/xpath/test_text.rb b/test/rexml/xpath/test_text.rb
index 03afe9667ca..cea3b057313 100644
--- a/test/rexml/xpath/test_text.rb
+++ b/test/rexml/xpath/test_text.rb
@@ -69,7 +69,7 @@ module REXMLTests
assert_equal(1, nodes.size, "<b> has one element ancestor")
nodes = @doc.get_elements('//b/ancestor::node()')
assert_equal(2, nodes.size, "<b> has two node ancestors")
- assert nodes[1].kind_of?(REXML::Document)
+ assert_kind_of REXML::Document, nodes[1]
end
end
end