Deprecate Registrant::WhoisController

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

View file

@ -1,3 +1,5 @@
# As non-GDPR compliant, this controller is deprecated. Needs to be replaced with one that relies
# on the REST WHOIS API.
class Registrant::WhoisController < RegistrantController
def index
authorize! :view, :registrant_whois

View file

@ -144,7 +144,6 @@ Rails.application.routes.draw do
end
resources :contacts
resources :whois
end

View file

@ -12,6 +12,6 @@ class RegistrantLayoutTest < ActionDispatch::IntegrationTest
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))
refute(has_link?('WHOIS', href: 'registrant/whois'))
end
end