method
parallelize_before_fork
rails 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