mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 22:16:19 +02:00
Migrate publishable
field name to registrant_publishable
This commit is contained in:
parent
4286a6bab7
commit
59fe7dffbe
9 changed files with 15 additions and 13 deletions
|
@ -229,9 +229,9 @@ class RegistrantApiV1ContactUpdateTest < ActionDispatch::IntegrationTest
|
|||
assert_equal %w[phone], @contact.disclosed_attributes
|
||||
end
|
||||
|
||||
def test_publishable_change_when_present
|
||||
def test_registrant_publishable_change_when_present
|
||||
@contact = contacts(:acme_ltd)
|
||||
@contact.update!(publishable: false)
|
||||
@contact.update!(registrant_publishable: false)
|
||||
|
||||
patch api_v1_registrant_contact_path(@contact.uuid),
|
||||
params: { disclosed_attributes: %w[], publishable: true },
|
||||
|
@ -240,7 +240,7 @@ class RegistrantApiV1ContactUpdateTest < ActionDispatch::IntegrationTest
|
|||
@contact.reload
|
||||
|
||||
assert_response :ok
|
||||
assert @contact.publishable
|
||||
assert @contact.registrant_publishable
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue