Commit 78f5eddc27676edd95a6cc37020a1841c97b0e64

Authored by Victor Costa
2 parents 1fbe212f 9c26b69b

Merge branch 'hotfixes' into stable

Showing 1 changed file with 0 additions and 11 deletions   Show diff stats
test/unit/person_notifier_test.rb
... ... @@ -214,17 +214,6 @@ class PersonNotifierTest < ActiveSupport::TestCase
214 214 assert_equal 1, Delayed::Job.count
215 215 end
216 216  
217   - should 'NotifyJob failed jobs create a new NotifyJob on failure' do
218   - Delayed::Worker.max_attempts = 1
219   - Delayed::Job.enqueue(PersonNotifier::NotifyJob.new(@member.id))
220   -
221   - PersonNotifier.any_instance.stubs(:notify).raises('error')
222   -
223   - process_delayed_job_queue
224   - jobs = PersonNotifier::NotifyJob.find(@member.id)
225   - assert !jobs.select {|j| !j.failed? && j.last_error.nil? }.empty?
226   - end
227   -
228 217 private
229 218  
230 219 def notify
... ...