ruby-changes:44333
From: nobu <ko1@a...>
Date: Thu, 13 Oct 2016 00:35:13 +0900 (JST)
Subject: [ruby-changes:44333] nobu:r56409 (trunk): better assertion
nobu 2016-10-13 00:29:06 +0900 (Thu, 13 Oct 2016) New Revision: 56409 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56409 Log: better assertion * test/rexml/xpath/test_text.rb (test_ancestors): use assert_kind_of for better assertion message. Modified files: trunk/test/rexml/xpath/test_text.rb Index: test/rexml/xpath/test_text.rb =================================================================== --- test/rexml/xpath/test_text.rb (revision 56408) +++ test/rexml/xpath/test_text.rb (revision 56409) @@ -69,7 +69,7 @@ module REXMLTests https://github.com/ruby/ruby/blob/trunk/test/rexml/xpath/test_text.rb#L69 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/