From 51501137b173f66e3db6bd53f43ba8d87db36a4e Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 7 Jan 2018 04:23:55 +0000 Subject: [PATCH] test_exception.rb: fix message * test/ruby/test_exception.rb (test_full_message): fix method name in a message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_exception.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index d7fa18b4f2..386d736d16 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -1116,8 +1116,8 @@ $stderr = $stdout; raise "\x82\xa0"') do |outs, errs, status| test_method = "def foo; raise 'testerror'; end" out1, err1, status1 = EnvUtil.invoke_ruby(['-e', "#{test_method}; begin; foo; rescue => e; puts e.full_message; end"], '', true, true) - assert(status1.success?) - assert(err1.empty?, "expected nothing wrote to $stdout by #long_message") + assert_predicate(status1, :success?) + assert_empty(err1, "expected nothing wrote to $stdout by #full_message") _, err2, status1 = EnvUtil.invoke_ruby(['-e', "#{test_method}; begin; foo; end"], '', true, true) assert_equal(err2, out1)