mirror of
https://github.com/internetee/registry.git
synced 2025-06-15 17:14:46 +02:00
business registry contacts - endpoints for send status of contacts and receive confirmation
This commit is contained in:
parent
a393854e1a
commit
db012dd7da
7 changed files with 188 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue