mirror of
https://github.com/internetee/registry.git
synced 2025-08-12 04:29:33 +02:00
fix tests -> count of running jobs were decreased
This commit is contained in:
parent
bbdf44583c
commit
19df0cd57f
2 changed files with 2 additions and 3 deletions
|
@ -75,8 +75,7 @@ class CompanyRegisterStatusJob < ApplicationJob
|
|||
|
||||
def check_for_force_delete(contact)
|
||||
contact.registrant_domains.any? do |domain|
|
||||
notes = domain.status_notes[DomainStatus::FORCE_DELETE]
|
||||
notes && notes.include?("Company no: #{contact.ident}")
|
||||
domain.force_delete_scheduled? && notes.include?("Company no: #{contact.ident}")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -532,7 +532,7 @@ class ForceDeleteTest < ActionMailer::TestCase
|
|||
assert_equal Date.parse('2010-09-19'), @domain.force_delete_date.to_date
|
||||
assert_equal Date.parse('2010-08-05'), @domain.force_delete_start.to_date
|
||||
|
||||
assert_enqueued_jobs 8
|
||||
assert_enqueued_jobs 6
|
||||
end
|
||||
|
||||
def prepare_bounced_email_address(email)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue