Add new links to registrant page layout

This commit is contained in:
Maciej Szlosarczyk 2018-06-18 10:30:23 +03:00
parent 5a0d191b7e
commit 843dc8edcb
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
3 changed files with 12 additions and 20 deletions

View file

@ -9,9 +9,10 @@ class RegistrantLayoutTest < ActionDispatch::IntegrationTest
travel_to Time.zone.parse('2010-07-05')
end
def test_has_link_to_rest_whois
def test_has_link_to_rest_whois_and_internet_ee
visit registrant_domains_url
assert(has_link?('Internet.ee', href: 'https://internet.ee'))
refute(has_link?('WHOIS', href: 'registrant/whois'))
assert(has_link?('WHOIS', href: 'https://whois.internet.ee'))
end
end