Commit 9c26b69b9a836168c0ad737bd2cd59984c31b63c
1 parent
64972c9a
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Remove old test from person_notifier
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 | ... | ... |