• T
    `ActiveJob::QueueAdapters::TestAdapter` is now a singleton · 802f855e
    Tamir Duberstein 提交于
    Since `ActiveJob::TestHelper` globally sets
    `ActiveJob::Base.queue_adapter` on setup, there is no benefit in
    instantiating a new `TestAdapter` per tests. The original rationale was
    to allow parallel tests to run without interference, but since they'd
    all mutate the global `ActiveJob::Base.queue_adapter`, that was never
    realized.
    802f855e
queue_adapter.rb 1.1 KB