Fix tests

This commit is contained in:
Karl Erik Õunapuu 2020-09-22 17:04:44 +03:00
parent a67a0e5bf0
commit 552e1e7b1e
No known key found for this signature in database
GPG key ID: C9DD647298A34764
2 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@ class RegistrantApiV1ContactListTest < ActionDispatch::IntegrationTest
get api_v1_registrant_contacts_path, as: :json, headers: { 'HTTP_AUTHORIZATION' => auth_token }
response_json = JSON.parse(response.body, symbolize_names: true)
assert_equal @user.contacts.count, response_json.size
assert_equal @user.contacts(representable: false).count, response_json.size
assert_includes response_json.map{ |hash| hash[:code] }, @contact.code
end