From 1992cec52daf885b7c82389216ecc37cff146120 Mon Sep 17 00:00:00 2001 From: kou Date: Sat, 21 Apr 2018 06:21:02 +0000 Subject: rexml: Fix a test bug test/rexml/test_jaxen.rb: Fix wrong assert_raise usage. Note that this code isn't used yet. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rexml/test_jaxen.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/rexml/test_jaxen.rb b/test/rexml/test_jaxen.rb index 703b2793d0..cc210faa70 100644 --- a/test/rexml/test_jaxen.rb +++ b/test/rexml/test_jaxen.rb @@ -124,7 +124,7 @@ module REXMLTests # 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 -- cgit v1.2.3