Project

General

Profile

« Previous | Next » 

Revision fa0f3eff

Added by deivid (David Rodríguez) over 4 years ago

[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