rails/activejob/test/jobs/queue_adapter_job.rb
Yuji Yaginuma 80dc309821 correctly set test adapter when configure the queue adapter on a per job (#26690)
The `ActiveJob::TestHelper` replace the adapter to test adapter in
`before_setup`. It gets the target class using the `descendants`, but if
the test target job class is not loaded, will not be a replacement of
the adapter.
Therefore, instead of replacing with `before_setup`, modified to
replace when setting adapter.

Fixes #26360
2017-01-31 16:37:16 -05:00

4 lines
75 B
Ruby

class QueueAdapterJob < ActiveJob::Base
self.queue_adapter = :inline
end