From df86d78a26edaafbaf317e86db946ab09700a920 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 7 Sep 2021 17:23:43 +0900 Subject: [PATCH] Use self class for diff --- tool/lib/test/unit/assertions.rb | 4 ++-- 1 file 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")