mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 23:42:04 +02:00
Fix tests
This commit is contained in:
parent
71d1e9bf47
commit
39022eab9e
1 changed files with 3 additions and 4 deletions
|
@ -453,12 +453,11 @@ class ForceDeleteTest < ActionMailer::TestCase
|
||||||
travel_to Time.zone.parse('2010-07-05 0:00:03')
|
travel_to Time.zone.parse('2010-07-05 0:00:03')
|
||||||
contact_first.verify_email
|
contact_first.verify_email
|
||||||
|
|
||||||
perform_enqueued_jobs
|
perform_enqueued_jobs { CheckForceDeleteLift.perform_now }
|
||||||
perform_check_force_delete_job(contact_first.id)
|
|
||||||
domain.reload
|
domain.reload
|
||||||
|
|
||||||
assert_equal domain.status_notes[DomainStatus::FORCE_DELETE], invalid_email
|
assert_nil domain.status_notes[DomainStatus::FORCE_DELETE]
|
||||||
notification = domain.registrar.notifications.last
|
notification = domain.registrar.notifications.last(2).first
|
||||||
assert notification.text.include? asserted_text
|
assert notification.text.include? asserted_text
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue