diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-12 15:29:06 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-12 15:29:06 +0000 |
commit | bc536d36c5673c1781a231b5f8e3fe0ebaf4823f (patch) | |
tree | 6d720df8dc9f3ed1632b096da6bf46cce98a0fc1 /test | |
parent | bd0acde00e61b07fe29d29aef47fa78640e901d0 (diff) | |
download | ruby-bc536d36c5673c1781a231b5f8e3fe0ebaf4823f.tar.gz |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/rexml/xpath/test_text.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rexml/xpath/test_text.rb b/test/rexml/xpath/test_text.rb index 03afe9667c..cea3b05731 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 |