mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Using parallelize_me! to parallelize isolated test
As ParallelEach is no more available
related commit ec00442c10
This commit is contained in:
parent
cad9eb178e
commit
5743926d51
1 changed files with 3 additions and 6 deletions
|
@ -1,5 +1,4 @@
|
|||
require 'rbconfig'
|
||||
require 'minitest/parallel'
|
||||
|
||||
module ActiveSupport
|
||||
module Testing
|
||||
|
@ -7,11 +6,9 @@ module ActiveSupport
|
|||
require 'thread'
|
||||
|
||||
def self.included(klass) #:nodoc:
|
||||
klass.extend(Module.new {
|
||||
def test_methods
|
||||
ParallelEach.new super
|
||||
end
|
||||
})
|
||||
klass.class_eval do
|
||||
parallelize_me!
|
||||
end
|
||||
end
|
||||
|
||||
def self.forking_env?
|
||||
|
|
Loading…
Reference in a new issue