Add test for clear force delete on registrar change

This commit is contained in:
Alex Sherman 2020-01-15 17:46:31 +05:00
parent c252d801f9
commit e7581246d6
5 changed files with 43 additions and 3 deletions

View file

@ -25,7 +25,7 @@ module Concerns::Domain::ForceDelete # rubocop:disable Metrics/ModuleLength
def should_notify_on_soft_force_delete?
force_delete_scheduled? && contact_notification_sent_date.blank? &&
force_delete_start.to_date == Time.zone.now.to_date && force_delete_type.to_sym == :soft
force_delete_start.to_date <= Time.zone.now.to_date && force_delete_type.to_sym == :soft
end
def client_holdable?