class ActiveJob::QueueAdapters::TestAdapter
def job_to_hash(job, extras = {})
def job_to_hash(job, extras = {}) job.serialize.tap do |job_data| job_data[:job] = job.class job_data[:args] = job_data.fetch("arguments") job_data[:queue] = job_data.fetch("queue_name") job_data[:priority] = job_data.fetch("priority") end.merge(extras) end