method
parallelize_before_fork
v8.1.1 -
Show latest stable
- Class:
ActiveSupport::TestCase
parallelize_before_fork(&block)public
Before fork hook for parallel testing. This can be used to run anything before the processes are forked.
In your test_helper.rb add the following:
class ActiveSupport::TestCase parallelize_before_fork do # run this before fork end end