class ActiveJob::QueueAdapters::TestAdapter

def perform_or_enqueue(perform, job, job_data)

def perform_or_enqueue(perform, job, job_data)
  if perform
    performed_jobs << job_data
    Base.execute(job.serialize)
  else
    enqueued_jobs << job_data
  end
end