Fix discarded domains test

This commit is contained in:
Alex Sherman 2021-02-01 16:52:38 +05:00
parent 38b7e52ac8
commit fc3a764896
2 changed files with 10 additions and 8 deletions

View file

@ -11,6 +11,13 @@ module Concerns::Contact::Identical
ident_country_code
org_name
]
IDENTICAL_ATTRIBUTES = %w[
ident
ident_type
ident_country_code
]
private_constant :IDENTIFIABLE_ATTRIBUTES
def identical(registrar)
@ -21,7 +28,7 @@ module Concerns::Contact::Identical
end
def identical_to?(contact)
IDENTIFIABLE_ATTRIBUTES.all? do |attribute|
IDENTICAL_ATTRIBUTES.all? do |attribute|
self.attributes[attribute] == contact.attributes[attribute]
end
end