summaryrefslogtreecommitdiff
path: root/tool/lib/test/unit/parallel.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2021-09-08 21:02:08 +0900
committerHiroshi SHIBATA <[email protected]>2021-09-11 08:48:03 +0900
commit9b026ca39b27b1213758699555eb8e6d4874984c (patch)
tree86cbdf5e4504e15772d39834682010041bdfdf06 /tool/lib/test/unit/parallel.rb
parent1e18f4e60f948e5887ae696390c99def102d8345 (diff)
Integrate Minitest to Test
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4813
Diffstat (limited to 'tool/lib/test/unit/parallel.rb')
-rw-r--r--tool/lib/test/unit/parallel.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/tool/lib/test/unit/parallel.rb b/tool/lib/test/unit/parallel.rb
index b0d8262bfc..84bf0c3e25 100644
--- a/tool/lib/test/unit/parallel.rb
+++ b/tool/lib/test/unit/parallel.rb
@@ -160,21 +160,21 @@ module Test
end
def puke(klass, meth, e) # :nodoc:
- if e.is_a?(MiniTest::Skip)
- new_e = MiniTest::Skip.new(e.message)
+ if e.is_a?(Test::Skip)
+ new_e = Test::Skip.new(e.message)
new_e.set_backtrace(e.backtrace)
e = new_e
end
- @partial_report << [klass.name, meth, e.is_a?(MiniTest::Assertion) ? e : ProxyError.new(e)]
+ @partial_report << [klass.name, meth, e.is_a?(Test::Assertion) ? e : ProxyError.new(e)]
super
end
def record(suite, method, assertions, time, error) # :nodoc:
case error
when nil
- when MiniTest::Assertion, MiniTest::Skip
+ when Test::Assertion, Test::Skip
case error.cause
- when nil, MiniTest::Assertion, MiniTest::Skip
+ when nil, Test::Assertion, Test::Skip
else
bt = error.backtrace
error = error.class.new(error.message)