From 5743926d51ab0fb05fa5478e0f585709167458f7 Mon Sep 17 00:00:00 2001 From: Arun Agrawal Date: Tue, 10 Dec 2013 22:09:17 +0100 Subject: Using parallelize_me! to parallelize isolated test As ParallelEach is no more available related commit ec00442c10cb90796909e876fb1cc557ed7518bd --- activesupport/lib/active_support/testing/isolation.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'activesupport/lib/active_support/testing') 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? -- cgit v1.2.3