Module: DelayedJobSpecHelper

Defined in:
lib/forge/spec/delayed_job_spec_helper.rb

Instance Method Summary collapse

Instance Method Details

#work_offObject



2
3
4
5
6
7
# File 'lib/forge/spec/delayed_job_spec_helper.rb', line 2

def work_off
  Delayed::Job.all.each do |job|
    job.payload_object.perform
    job.destroy
  end
end