1
0
Fork 0
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:
Arun Agrawal 2013-12-10 22:09:17 +01:00
parent cad9eb178e
commit 5743926d51

View file

@ -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?