diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-07 04:23:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-07 04:23:55 +0000 |
commit | 51501137b173f66e3db6bd53f43ba8d87db36a4e (patch) | |
tree | d5418049f9058c09ff24d81d0eb82826514292a4 /test/ruby/test_exception.rb | |
parent | 23a0a9b90daa9d550b1fdfe8f5827879122e7065 (diff) | |
download | ruby-51501137b173f66e3db6bd53f43ba8d87db36a4e.tar.gz |
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
Diffstat (limited to 'test/ruby/test_exception.rb')
-rw-r--r-- | test/ruby/test_exception.rb | 4 |
1 files 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) |