business registry contacts - endpoints for send status of contacts and receive confirmation

This commit is contained in:
olegphenomenon 2022-03-11 10:27:10 +02:00
parent a393854e1a
commit db012dd7da
7 changed files with 188 additions and 29 deletions

View file

@ -41,10 +41,8 @@ class RegistrantUserTest < ActiveSupport::TestCase
company = Company.new(org.ident, "ace")
company_register = Minitest::Mock.new
company_register.expect(:representation_rights, [company], [{ citizen_personal_code: '1234',
citizen_country_code: 'USA' }])
@user.companies(company_register)
Spy.on(@user, :companies).and_return([company])
@user.update_company_contacts
org.reload
assert_equal org.name, company.company_name