diff options
author | Arun Agrawal <arunagw@gmail.com> | 2013-12-10 22:09:17 +0100 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2013-12-10 22:09:58 +0100 |
commit | 5743926d51ab0fb05fa5478e0f585709167458f7 (patch) | |
tree | 9f73ae40b01ca567f456d1353bb553ec6dfc1f96 /activesupport/lib | |
parent | cad9eb178ea5eec0e27d74e93518f4ed34e2f997 (diff) | |
download | rails-5743926d51ab0fb05fa5478e0f585709167458f7.tar.gz rails-5743926d51ab0fb05fa5478e0f585709167458f7.tar.bz2 rails-5743926d51ab0fb05fa5478e0f585709167458f7.zip |
Using parallelize_me! to parallelize isolated test
As ParallelEach is no more available
related commit ec00442c10cb90796909e876fb1cc557ed7518bd
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/testing/isolation.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/activesupport/lib/active_support/testing/isolation.rb b/activesupport/lib/active_support/testing/isolation.rb index 18c48a7e0c..75ead48376 100644 --- a/activesupport/lib/active_support/testing/isolation.rb +++ b/activesupport/lib/active_support/testing/isolation.rb @@ -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? |