diff --git a/test/unit/person_notifier_test.rb b/test/unit/person_notifier_test.rb index 8495e72..e2aeb2d 100644 --- a/test/unit/person_notifier_test.rb +++ b/test/unit/person_notifier_test.rb @@ -214,17 +214,6 @@ class PersonNotifierTest < ActiveSupport::TestCase assert_equal 1, Delayed::Job.count end - should 'NotifyJob failed jobs create a new NotifyJob on failure' do - Delayed::Worker.max_attempts = 1 - Delayed::Job.enqueue(PersonNotifier::NotifyJob.new(@member.id)) - - PersonNotifier.any_instance.stubs(:notify).raises('error') - - process_delayed_job_queue - jobs = PersonNotifier::NotifyJob.find(@member.id) - assert !jobs.select {|j| !j.failed? && j.last_error.nil? }.empty? - end - private def notify -- libgit2 0.21.2