added test for total count

This commit is contained in:
Oleg Hasjanov 2021-02-10 10:17:50 +02:00
parent d19bb69342
commit 951d95a3e8

View file

@ -94,7 +94,7 @@ class RegistrantApiDomainsTest < ApplicationIntegrationTest
assert_equal(200, response.status)
response_json = JSON.parse(response.body, symbolize_names: true)
assert_equal response_json[:domains].length, 4
assert_equal response_json[:domains].length, response_json[:count]
assert_equal response_json[:total], 5
end