mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Add invalid email to FD status note
This commit is contained in:
parent
26618a3c90
commit
3eecdd8d29
3 changed files with 10 additions and 0 deletions
|
@ -380,6 +380,7 @@ class ForceDeleteTest < ActionMailer::TestCase
|
|||
assert_equal 'invalid_email', @domain.template_name
|
||||
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_equal @domain.status_notes[DomainStatus::FORCE_DELETE], email
|
||||
notification = @domain.registrar.notifications.last
|
||||
assert notification.text.include? asserted_text
|
||||
end
|
||||
|
@ -409,7 +410,9 @@ class ForceDeleteTest < ActionMailer::TestCase
|
|||
|
||||
@domain.reload
|
||||
assert_not @domain.force_delete_scheduled?
|
||||
assert_nil @domain.status_notes[DomainStatus::FORCE_DELETE]
|
||||
end
|
||||
|
||||
def test_lifts_force_delete_after_bounce_changes
|
||||
@domain.update(valid_to: Time.zone.parse('2012-08-05'))
|
||||
assert_not @domain.force_delete_scheduled?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue