Show domains where current registrant user acts as a registrant

#663
This commit is contained in:
Artur Beljajev 2018-01-14 20:48:03 +02:00
parent b58f0e891b
commit 67082374ff
8 changed files with 82 additions and 11 deletions

View file

@ -0,0 +1,25 @@
require 'test_helper'
class DomainsTest < ActionDispatch::IntegrationTest
def setup
login_as users(:registrant)
Setting.days_to_keep_business_registry_cache = 1
travel_to Time.zone.parse('2010-07-05')
end
def test_shows_domains_where_current_user_is_registrant
visit registrant_domains_url
assert_text 'one.test'
end
def test_shows_domains_where_current_user_is_contact_person
visit registrant_domains_url
assert_text 'two.test'
end
def test_shows_domains_where_current_user_has_associated_organizations
visit registrant_domains_url
assert_text 'three.test'
end
end