added api for accr center

This commit is contained in:
Oleg Hasjanov 2021-08-26 18:22:19 +03:00 committed by olegphenomenon
parent bccd3d51c1
commit a87fd6a8b7
8 changed files with 191 additions and 0 deletions

View file

@ -0,0 +1,16 @@
require 'test_helper'
class ContactsTest < ApplicationIntegrationTest
def setup
super
@contact = contacts(:john)
end
def test_return_code_error_if_valid_domain_name
get "/api/v1/accreditation_center/contacts/?id=Alyosha"
json = JSON.parse(response.body, symbolize_names: true)
assert_equal json[:errors], "Contact not found"
end
end