Skip to content

Commit 758ba11

Browse files
Kazhuukaspth
authored andcommitted
running test with_info_handler method
1 parent 19df75d commit 758ba11

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

activesupport/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
* Calling test methods with `with_info_handler` method to allow minitest-hooks
2+
plugin to work.
3+
4+
*Mauri Mustonen*
5+
16
* The Zeitwerk compatibility interface for `ActiveSupport::Dependencies` no
27
longer implements `autoloaded_constants` or `autoloaded?` (undocumented,
38
anyway). Experience shows introspection does not have many use cases, and

activesupport/lib/active_support/testing/parallelization.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ def start
7979
klass = job[0]
8080
method = job[1]
8181
reporter = job[2]
82-
result = Minitest.run_one_method(klass, method)
82+
result = klass.with_info_handler reporter do
83+
Minitest.run_one_method(klass, method)
84+
end
8385

8486
begin
8587
queue.record(reporter, result)

0 commit comments

Comments
 (0)