spec/resque/batch_spec.rb
# NOTE: Normally this will be async, but it's easier to test this way
Normally this will be async, but it's easier to test this way
Normally this will be async but it ' s easier to test this way
def process_job(queue = :batch)
  worker = Resque::Worker.new(queue)
  worker.fork_per_job = false
  worker.work_one_job
end
def process_job ( queue = :batch ) worker = Resque :: Worker . new ( queue ) worker . fork_per_job = false worker . work_one_job end
NOTE: Normally this will be async, but it's easier to test this way
NOTE : Normally this will be async but it ' s easier to test this way
queue
<not_specific>