summaryrefslogtreecommitdiff
path: root/tool/lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'tool/lib/test')
-rw-r--r--tool/lib/test/unit/assertions.rb4
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")