• S
    Provide the ability to override the queue adapter used by jobs under · 38c187b0
    Steve Lounsbury 提交于
    test.
    
    This PR adds a method called `queue_adapter_for_test` to
    `ActiveJob::TestHelper`. This method is expected to provide the queue
    adapter to be used for jobs under test. It maintains the current
    behaviour by defaulting to an instance of
    `ActiveJob::QueueAdapter::TestAdapter`. Tests that include
    `ActiveJob::TestHelper` or extend from `ActiveJob::TestCase` can provide
    a custom queue adapter by overriding `queue_adapter_for_test` in their
    class.
    38c187b0
test_helper.rb 10.5 KB