diff options
author | Hiroshi SHIBATA <[email protected]> | 2021-09-07 17:23:43 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-09-11 08:48:03 +0900 |
commit | df86d78a26edaafbaf317e86db946ab09700a920 (patch) | |
tree | 0c840b3759dc8d67d38f9facdbf6719c5bcbfc75 /tool/lib/test | |
parent | 3e32412e08d2ec77cb84d535b591445cdaa4656a (diff) |
Use self class for diff
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4813
Diffstat (limited to 'tool/lib/test')
-rw-r--r-- | tool/lib/test/unit/assertions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/lib/test/unit/assertions.rb b/tool/lib/test/unit/assertions.rb index c179f11892..29ace55d1d 100644 --- a/tool/lib/test/unit/assertions.rb +++ b/tool/lib/test/unit/assertions.rb @@ -45,7 +45,7 @@ module Test result = nil need_to_diff = - MiniTest::Assertions.diff && + self.class.diff && (expect.include?("\n") || butwas.include?("\n") || expect.size > 30 || @@ -68,7 +68,7 @@ module Test b.puts butwas b.flush - result = `#{MiniTest::Assertions.diff} #{a.path} #{b.path}` + result = `#{self.class.diff} #{a.path} #{b.path}` result.sub!(/^\-\-\- .+/, "--- expected") result.sub!(/^\+\+\+ .+/, "+++ actual") |