mirror of
https://github.com/internetee/registry.git
synced 2025-08-23 09:40:56 +02:00
change test
This commit is contained in:
parent
ae430b1b37
commit
9cdd86a5d5
1 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ class RegistrantApiDomainsTest < ApplicationIntegrationTest
|
||||||
response_json = JSON.parse(response.body, symbolize_names: true)
|
response_json = JSON.parse(response.body, symbolize_names: true)
|
||||||
|
|
||||||
assert_equal(200, response.status)
|
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
|
get '/api/v1/registrant/domains', headers: @auth_headers
|
||||||
response_json = JSON.parse(response.body, symbolize_names: true)
|
response_json = JSON.parse(response.body, symbolize_names: true)
|
||||||
|
@ -129,7 +129,7 @@ class RegistrantApiDomainsTest < ApplicationIntegrationTest
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_root_does_not_accept_offset_lower_than_0
|
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
|
headers: @auth_headers
|
||||||
|
|
||||||
assert_equal(400, response.status)
|
assert_equal(400, response.status)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue