mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
rm minitest monkey patch
This commit is contained in:
parent
07bd57385f
commit
fa13d8e6d9
1 changed files with 0 additions and 17 deletions
|
@ -15,23 +15,6 @@ begin
|
|||
rescue LoadError
|
||||
end
|
||||
|
||||
module Minitest # :nodoc:
|
||||
class << self
|
||||
remove_method :__run
|
||||
end
|
||||
|
||||
def self.__run reporter, options # :nodoc:
|
||||
# FIXME: MT5's runnables is not ordered. This is needed because
|
||||
# we have tests with cross-class order-dependent bugs.
|
||||
suites = Runnable.runnables.sort_by { |ts| ts.name.to_s }
|
||||
|
||||
parallel, serial = suites.partition { |s| s.test_order == :parallel }
|
||||
|
||||
ParallelEach.new(parallel).map { |suite| suite.run reporter, options } +
|
||||
serial.map { |suite| suite.run reporter, options }
|
||||
end
|
||||
end
|
||||
|
||||
module ActiveSupport
|
||||
class TestCase < ::Minitest::Test
|
||||
Assertion = Minitest::Assertion
|
||||
|
|
Loading…
Reference in a new issue