ruby-changes:51012
From: kou <ko1@a...>
Date: Sat, 21 Apr 2018 15:21:05 +0900 (JST)
Subject: [ruby-changes:51012] kou:r63219 (trunk): rexml: Fix a test bug
kou 2018-04-21 15:21:02 +0900 (Sat, 21 Apr 2018) New Revision: 63219 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63219 Log: rexml: Fix a test bug test/rexml/test_jaxen.rb: Fix wrong assert_raise usage. Note that this code isn't used yet. Modified files: trunk/test/rexml/test_jaxen.rb Index: test/rexml/test_jaxen.rb =================================================================== --- test/rexml/test_jaxen.rb (revision 63218) +++ test/rexml/test_jaxen.rb (revision 63219) @@ -124,7 +124,7 @@ module REXMLTests https://github.com/ruby/ruby/blob/trunk/test/rexml/test_jaxen.rb#L124 # processes a tests/document/context/test node ( where @exception is true ) def process_exceptional_test(context, variables, namespaces, test) select = test.attributes["select"] - assert_raise do + assert_raise(REXML::ParseException) do XPath.match(context, select, namespaces, variables) end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/