Fix existing tests

This commit is contained in:
Alex Sherman 2020-11-05 12:45:59 +05:00
parent 3ce0fc4a5c
commit 0116531786
4 changed files with 8 additions and 16 deletions

View file

@ -20,7 +20,13 @@ module Concerns::Domain::ForceDelete # rubocop:disable Metrics/ModuleLength
end
def notification_template
registrant.org? ? 'legal_person' : 'private_person'
if contact_emails_verification_failed.present?
'invalid_email'
elsif registrant.org?
'legal_person'
else
'private_person'
end
end
def force_delete_scheduled?