change test

This commit is contained in:
olegphenomenon 2022-08-03 12:40:49 +03:00
parent ae430b1b37
commit 9cdd86a5d5

View file

@ -111,7 +111,7 @@ class RegistrantApiDomainsTest < ApplicationIntegrationTest
response_json = JSON.parse(response.body, symbolize_names: true)
assert_equal(200, response.status)
assert_equal(2, response_json[:domains].count)
assert_equal(4, response_json[:domains].count)
get '/api/v1/registrant/domains', headers: @auth_headers
response_json = JSON.parse(response.body, symbolize_names: true)
@ -129,7 +129,7 @@ class RegistrantApiDomainsTest < ApplicationIntegrationTest
end
def test_root_does_not_accept_offset_lower_than_0
get '/api/v1/registrant/domains', params: { 'limit' => 200, 'offset' => "-10" },
get '/api/v1/registrant/domains', params: { 'limit' => 100, 'offset' => "-10" },
headers: @auth_headers
assert_equal(400, response.status)