diff --git a/lib/rspec/rails/matchers/active_job.rb b/lib/rspec/rails/matchers/active_job.rb index 944391032..0a9079b90 100644 --- a/lib/rspec/rails/matchers/active_job.rb +++ b/lib/rspec/rails/matchers/active_job.rb @@ -384,33 +384,33 @@ def have_been_enqueued # # @example # expect { - # perform_jobs { HeavyLiftingJob.perform_later } + # perform_enqueued_jobs { HeavyLiftingJob.perform_later } # }.to have_performed_job # # expect { - # perform_jobs { + # perform_enqueued_jobs { # HelloJob.perform_later # HeavyLiftingJob.perform_later # } # }.to have_performed_job(HelloJob).exactly(:once) # # expect { - # perform_jobs { 3.times { HelloJob.perform_later } } + # perform_enqueued_jobs { 3.times { HelloJob.perform_later } } # }.to have_performed_job(HelloJob).at_least(2).times # # expect { - # perform_jobs { HelloJob.perform_later } + # perform_enqueued_jobs { HelloJob.perform_later } # }.to have_performed_job(HelloJob).at_most(:twice) # # expect { - # perform_jobs { + # perform_enqueued_jobs { # HelloJob.perform_later # HeavyLiftingJob.perform_later # } # }.to have_performed_job(HelloJob).and have_performed_job(HeavyLiftingJob) # # expect { - # perform_jobs { + # perform_enqueued_jobs { # HelloJob.set(wait_until: Date.tomorrow.noon, queue: "low").perform_later(42) # } # }.to have_performed_job.with(42).on_queue("low").at(Date.tomorrow.noon)