diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-12-10 14:17:42 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-12-10 14:17:42 -0800 |
commit | 11c0ef58a6cd278fc6b5d81a7724d9bcdb47f623 (patch) | |
tree | e68c1887a8e6375fab9cfd7e24aa9d92aec417e3 | |
parent | 308f37f94ddec2d2d37519ea751c70128c2a0e6b (diff) | |
parent | 5743926d51ab0fb05fa5478e0f585709167458f7 (diff) | |
download | rails-11c0ef58a6cd278fc6b5d81a7724d9bcdb47f623.tar.gz rails-11c0ef58a6cd278fc6b5d81a7724d9bcdb47f623.tar.bz2 rails-11c0ef58a6cd278fc6b5d81a7724d9bcdb47f623.zip |
Merge pull request #13260 from arunagw/using-parallelize_me
Using parallelize_me! to parallelize isolated test
-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? |