Created
April 4, 2020 14:01
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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