-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
929ccf6
commit c6ff1ad
Showing
1 changed file
with
0 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -518,30 +518,6 @@ def test_lifts_force_delete_after_bounce_changes | |
assert_not @domain.force_delete_scheduled? | ||
end | ||
|
||
def test_lifts_force_delete_after_changing_to_valid_email | ||
@domain.update(valid_to: Time.zone.parse('2012-08-05')) | ||
assert_not @domain.force_delete_scheduled? | ||
travel_to Time.zone.parse('2010-07-05') | ||
@domain.registrant.update_attribute(:email, '`@internet.ee') | ||
3.times { @domain.registrant.verify_email } | ||
perform_check_force_delete_job(@domain.registrant.id) | ||
@domain.reload | ||
|
||
assert @domain.force_delete_scheduled? | ||
|
||
@domain.registrant.update(email: '[email protected]') | ||
@domain.registrant.verify_email | ||
perform_enqueued_jobs | ||
@domain.reload | ||
|
||
assert @domain.registrant.need_to_lift_force_delete? | ||
|
||
perform_enqueued_jobs { ForceDeleteLiftJob.perform_now } | ||
@domain.reload | ||
|
||
assert_not @domain.force_delete_scheduled? | ||
end | ||
|
||
def prepare_bounced_email_address(email) | ||
@bounced_mail = BouncedMailAddress.new | ||
@bounced_mail.email = email | ||
|