* Lock erb_lint * Refactor moderation spec * Remove & replace RequestSpecHelper * Update uid to sequence * Lower the need for persistence in specs * Update moderation spec * Update shoulda-matchers * Enable backgroundjobs and update commenct spec * Fix fail specs * Update comment's validations * Remove redundent specs * Actually turn off DJ * Apply run_background_jobs_immediately * Remove giveawy specs * Create Identity spec
11 lines
222 B
Ruby
11 lines
222 B
Ruby
module BackgroundJobs
|
|
def run_background_jobs_immediately
|
|
Delayed::Worker.delay_jobs = false
|
|
yield
|
|
Delayed::Worker.delay_jobs = true
|
|
end
|
|
end
|
|
|
|
RSpec.configure do |config|
|
|
config.include BackgroundJobs
|
|
end
|