Sha256: ef63d97fb84dccb9c3b71ffe5bc635be9ceb3be640d461c9f1fdb39c0ecd148b
Contents?: true
Size: 405 Bytes
Versions: 96
Compression:
Stored size: 405 Bytes
Contents
module BackgroundJobs def run_background_jobs_immediately delay_jobs = Delayed::Worker.delay_jobs Delayed::Worker.delay_jobs = false yield ensure Delayed::Worker.delay_jobs = delay_jobs end end RSpec.configure do |config| config.around(:each, type: :feature) do |example| run_background_jobs_immediately do example.run end end config.include BackgroundJobs end
Version data entries
96 entries across 96 versions & 12 rubygems