Skip to content

Instantly share code, notes, and snippets.

@minimul
Created April 4, 2020 14:01
Show Gist options
  • Save minimul/308eaf4b49c4d8d044591afab49c267c to your computer and use it in GitHub Desktop.
Save minimul/308eaf4b49c4d8d044591afab49c267c to your computer and use it in GitHub Desktop.
Recording a VCR Cassette of a Background Job in Rails 5.2 and Rails 6
VCR.use_cassette 'qbo/send/job/create_entities_multi_employee', record: :none do
perform_enqueued_jobs do
ProcessImportFileJob.perform_now(import_file.id)
end
end
RSpec.configure do |config|
# ....
Rails.application.config.active_job.queue_adapter = :inline
# ....
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment