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|
In official docs here is have_enqueued_job matcher
The have_enqueued_job (also aliased as enqueue_job) matcher is used to check if given ActiveJob job was enqueued.
https://relishapp.com/rspec/rspec-rails/docs/matchers/have-enqueued-job-matcher