refactored tests, changed condition for validate email data

This commit is contained in:
olegphenomenon 2021-10-15 14:55:49 +03:00
parent 3a8ab93dd7
commit 1048fbdd35
4 changed files with 36 additions and 7 deletions

View file

@ -50,7 +50,7 @@ def prepare_contacts(options)
if options[:domain_name].present?
contacts_by_domain(options[:domain_name])
else
Contact.recently_not_validated
Contact.all
end
end
@ -58,7 +58,7 @@ def contacts_by_domain(domain_name)
domain = ::Domain.find_by(name: domain_name)
return unless domain
domain.contacts.recently_not_validated
domain.contacts
end
def opts_hash