updated tests

This commit is contained in:
olegphenomenon 2021-09-24 14:18:39 +03:00
parent ab26100e78
commit a896e78e51
9 changed files with 75 additions and 28 deletions

View file

@ -23,6 +23,7 @@ module Domain::RegistryLockable
end
def apply_statuses_locked_statuses(extensions_prohibited:)
self.admin_store_statuses_history = self.statuses
self.statuses |= LOCK_STATUSES
self.statuses |= EXTENSIONS_STATUS if Feature.obj_and_extensions_statuses_enabled? && extensions_prohibited
self.locked_by_registrant_at = Time.zone.now
@ -53,6 +54,8 @@ module Domain::RegistryLockable
end
def remove_statuses_from_locked_domain
# binding.pry
# self.admin_store_statuses_history = self.statuses
LOCK_STATUSES.each do |domain_status|
statuses.delete([domain_status])
end

View file

@ -23,7 +23,7 @@ class RegistrantUser < User
company_register.representation_rights(citizen_personal_code: ident,
citizen_country_code: country.alpha3)
end
def contacts(representable: true)
Contact.registrant_user_contacts(self, representable: representable)
end