lib/testr/config/parallel_tests.rb in testr-14.2.0 vs lib/testr/config/parallel_tests.rb in testr-14.3.0
- old
+ new
@@ -1,9 +1,7 @@
require 'testr/config'
-TestR::Config.after_fork_hooks << lambda {
- |worker_number, log_file, test_file, test_names|
-
+TestR::Config.after_fork_hooks << proc do |worker_number|
# for compatitibilty with parallel_tests gem,
# store numbers as strings: "", "2", "3", "4"
ENV['TEST_ENV_NUMBER'] = (worker_number + 1).to_s if worker_number > 0
-}
+end