summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-12 15:29:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-12 15:29:06 +0000
commit9d8f62d55ebec188b9d86db198893dade255af90 (patch)
tree6d720df8dc9f3ed1632b096da6bf46cce98a0fc1
parent7f887ab122df220df038ee57b875f0aa40cc3e8b (diff)
better assertion
* test/rexml/xpath/test_text.rb (test_ancestors): use assert_kind_of for better assertion message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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