mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 10:45:58 +02:00
Eliminate mystery guest
This commit is contained in:
parent
1bbf7e73d0
commit
af9cc1cd8e
3 changed files with 5 additions and 3 deletions
|
@ -12,4 +12,5 @@
|
|||
|
||||
ActiveSupport::Inflector.inflections(:en) do |inflect|
|
||||
inflect.acronym 'DNS'
|
||||
inflect.irregular 'business_registry_cache', 'business_registry_caches'
|
||||
end
|
||||
|
|
5
test/fixtures/business_registry_caches.yml
vendored
5
test/fixtures/business_registry_caches.yml
vendored
|
@ -1,8 +1,7 @@
|
|||
first:
|
||||
one:
|
||||
ident: 1234
|
||||
ident_country_code: US
|
||||
associated_businesses:
|
||||
- 1234
|
||||
associated_businesses: []
|
||||
retrieved_on: 2010-07-05 10:30
|
||||
created_at: 2010-07-05 10:30
|
||||
updated_at: 2010-07-05 10:30
|
||||
|
|
|
@ -160,7 +160,9 @@ class RegistrantApiV1ContactUpdateTest < ActionDispatch::IntegrationTest
|
|||
end
|
||||
|
||||
def test_legal_persons_disclosed_attributes_cannot_be_changed
|
||||
business_registry_caches(:one).update!(associated_businesses: %w[1234])
|
||||
@contact.update!(ident_type: Contact::ORG,
|
||||
ident: '1234',
|
||||
disclosed_attributes: %w[])
|
||||
|
||||
assert_no_changes -> { @contact.disclosed_attributes } do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue