lib/belated/testing.rb in belated-0.6.7 vs lib/belated/testing.rb in belated-0.7.0

- old
+ new

@@ -20,18 +20,18 @@ class Belated # A client that can perform jobs inline class Client alias old_perform perform - def perform(job, at: nil, max_retries: 5) + def perform(job, at: nil, max_retries: 5, active_job: false) if Belated::Testing.inline? if job.respond_to?(:call) job.call else job.perform end else - old_perform(job, at: at, max_retries: max_retries) + old_perform(job, at: at, max_retries: max_retries, active_job: active_job) end end end end