mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 23:42:04 +02:00
Merge pull request #2418 from internetee/2413-force-delete-lift-bug
Fix check force delete lift bug
This commit is contained in:
commit
4a0dc8e159
4 changed files with 50 additions and 39 deletions
|
@ -453,12 +453,13 @@ class ForceDeleteTest < ActionMailer::TestCase
|
|||
travel_to Time.zone.parse('2010-07-05 0:00:03')
|
||||
contact_first.verify_email
|
||||
|
||||
perform_check_force_delete_job(contact_first.id)
|
||||
perform_enqueued_jobs { CheckForceDeleteLift.perform_now }
|
||||
domain.reload
|
||||
|
||||
assert_equal domain.status_notes[DomainStatus::FORCE_DELETE], invalid_email
|
||||
notification = domain.registrar.notifications.last
|
||||
assert_nil domain.status_notes[DomainStatus::FORCE_DELETE]
|
||||
notification = domain.registrar.notifications.last(2).first
|
||||
assert notification.text.include? asserted_text
|
||||
assert_not domain.force_delete_scheduled?
|
||||
end
|
||||
|
||||
def test_domain_should_have_several_bounced_emails
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue