I have a create action that calls an ActiveJob if the record is successfully saved.
def create @object = Object.new(importer_params) respond_to do |format|
If you need to check that your job has been enqueued several times, you can now do this:
expect { 3.times { HelloJob.perform_later } }.to have_enqueued_job(HelloJob).at_least(2).times