mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
Fix bug in domains not returning those where a contact was only a registrant
This commit is contained in:
parent
1684c5dd34
commit
ba01bb3dfc
3 changed files with 31 additions and 11 deletions
|
@ -13,10 +13,10 @@ class RegistrantUserTest < ActiveSupport::TestCase
|
|||
|
||||
def test_domains_returns_an_list_of_distinct_domains_associated_with_a_specific_id_code
|
||||
domain_names = @user.domains.pluck(:name)
|
||||
assert_equal(3, domain_names.length)
|
||||
assert_equal(4, domain_names.length)
|
||||
|
||||
# User is a registrant, but not a contact for the domain.
|
||||
refute(domain_names.include?('shop.test'))
|
||||
# User is a registrant, but not a contact for the domain. Should be included in the list.
|
||||
assert(domain_names.include?('shop.test'))
|
||||
end
|
||||
|
||||
def test_administered_domains_returns_a_list_of_domains
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue