Remove link to WHOIS controller from registrant portal

This commit is contained in:
Maciej Szlosarczyk 2018-05-25 13:55:21 +03:00
parent 13fe452c73
commit f1808cfcf1
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
3 changed files with 101 additions and 54 deletions

View file

@ -0,0 +1,17 @@
require 'test_helper'
class RegistrantLayoutTest < ActionDispatch::IntegrationTest
def setup
super
login_as(users(:registrant))
Setting.days_to_keep_business_registry_cache = 1
travel_to Time.zone.parse('2010-07-05')
end
def test_has_link_to_rest_whois
visit registrant_domains_url
assert(has_link?('Internet.ee', href: 'https://internet.ee'))
refute(has_link?('WHOIS', href: registrant_whois_path))
end
end