Do not show contact if given domain does not belong to the current user

This commit is contained in:
Artur Beljajev 2018-08-16 14:49:12 +03:00
parent 5a466206bf
commit c89cce6287
7 changed files with 39 additions and 7 deletions

View file

@ -57,7 +57,7 @@ class RegistrantApiDomainsTest < ApplicationIntegrationTest
get '/api/v1/registrant/domains', {}, @auth_headers
response_json = JSON.parse(response.body, symbolize_names: true)
assert_equal(5, response_json.count)
assert_equal(4, response_json.count)
end
def test_root_does_not_accept_limit_higher_than_200