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
This commit is contained in:
parent
23a0a9b90d
commit
51501137b1
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user