diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-11-30 14:01:18 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-12-01 08:22:37 +0900 |
commit | fa0f3eff228bb26de6d5b0e1238b1f358165dbd0 (patch) | |
tree | c8b06dbabf879f6174d583c33f561f4043fba366 /tool | |
parent | 5b1f7f26b4ff3b05e1c184ae87154a323b1be915 (diff) | |
download | ruby-fa0f3eff228bb26de6d5b0e1238b1f358165dbd0.tar.gz |
[ruby/fileutils] Fix error printing test failure
`exception_details` is not defined anywhere.
This commit fixes the following test crash in ruby 2.4
```
Error: test_assert_output_lines(TestFileUtils): NoMethodError: undefined method `exception_details' for #<TestFileUtils:0x00005556ef699178>
```
And replaces it with an actual test failure:
```
[Test::Unit::CoreAssertions::MiniTest::Assertion] exception expected, not #<NoMethodError: undefined method `full_message' for #<RuntimeError: ok>
Did you mean? message>.
```
https://github.com/ruby/fileutils/commit/2f38ba6e82
Diffstat (limited to 'tool')
-rw-r--r-- | tool/lib/test/unit/core_assertions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/lib/test/unit/core_assertions.rb b/tool/lib/test/unit/core_assertions.rb index 63d79ae2aa..b2566561ce 100644 --- a/tool/lib/test/unit/core_assertions.rb +++ b/tool/lib/test/unit/core_assertions.rb @@ -216,7 +216,7 @@ eom } assert expected, proc { - exception_details(e, message(msg) {"#{mu_pp(exp)} exception expected, not"}.call) + flunk(message(msg) {"#{mu_pp(exp)} exception expected, not #{mu_pp(e)}"}) } return e |