mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
Add company controlled contacts to registrant API
Fix tests.
This commit is contained in:
parent
735a0e1642
commit
c4de5655e1
8 changed files with 45 additions and 35 deletions
|
@ -214,6 +214,9 @@ class RegistrantApiV1ContactUpdateTest < ActionDispatch::IntegrationTest
|
|||
def test_unmanaged_contact_cannot_be_updated
|
||||
assert_equal 'US-1234', @user.registrant_ident
|
||||
@contact.update!(ident: '12345')
|
||||
companies = Contact.where(ident_type: 'org')
|
||||
companies.update_all(ident: '78964521')
|
||||
companies.reload
|
||||
|
||||
patch api_v1_registrant_contact_path(@contact.uuid), params: { name: 'new name' },
|
||||
as: :json,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue