Skip to content

Commit 4265889

Browse files
f-mercodez
authored andcommitted
Destroy failed jobs while testing
This is the default behavior of DelayedJob and the specs assume it.
1 parent e5291d2 commit 4265889

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
require 'active_job'
1919
require 'delayed_cron_job'
2020

21+
Delayed::Worker.destroy_failed_jobs = true
2122
Delayed::Worker.logger = Logger.new('/tmp/dj.log')
2223
ENV['RAILS_ENV'] = 'test'
2324

0 commit comments

Comments
 (0)