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 | 9d8f62d55ebec188b9d86db198893dade255af90 (patch) | |
tree | 6d720df8dc9f3ed1632b096da6bf46cce98a0fc1 /test | |
parent | 7f887ab122df220df038ee57b875f0aa40cc3e8b (diff) | |
download | ruby-9d8f62d55ebec188b9d86db198893dade255af90.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 |