aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/testing
diff options
context:
space:
mode:
authorMauri Mustonen <mauri_mustonen@hotmail.com>2019-03-09 15:37:23 +0200
committerKasper Timm Hansen <kaspth@gmail.com>2019-04-16 22:25:55 +0200
commit758ba117a008b6ea2d3b92c53b6a7a8d7ccbca69 (patch)
tree501484c3510069af09838e095cfb6d4d8e48603b /activesupport/lib/active_support/testing
parent19df75dc3dac2d27585ae54f9c800126c6a48636 (diff)
downloadrails-758ba117a008b6ea2d3b92c53b6a7a8d7ccbca69.tar.gz
rails-758ba117a008b6ea2d3b92c53b6a7a8d7ccbca69.tar.bz2
rails-758ba117a008b6ea2d3b92c53b6a7a8d7ccbca69.zip
running test with_info_handler method
Diffstat (limited to 'activesupport/lib/active_support/testing')
-rw-r--r--activesupport/lib/active_support/testing/parallelization.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/testing/parallelization.rb b/activesupport/lib/active_support/testing/parallelization.rb
index 63440069b1..08285b2f52 100644
--- a/activesupport/lib/active_support/testing/parallelization.rb
+++ b/activesupport/lib/active_support/testing/parallelization.rb
@@ -79,7 +79,9 @@ module ActiveSupport
klass = job[0]
method = job[1]
reporter = job[2]
- result = Minitest.run_one_method(klass, method)
+ result = klass.with_info_handler reporter do
+ Minitest.run_one_method(klass, method)
+ end
begin
queue.record(reporter, result)