Eliminate mystery guest

This commit is contained in:
Artur Beljajev 2018-12-18 16:27:10 +02:00
parent 1bbf7e73d0
commit af9cc1cd8e
3 changed files with 5 additions and 3 deletions

View file

@ -12,4 +12,5 @@
ActiveSupport::Inflector.inflections(:en) do |inflect|
inflect.acronym 'DNS'
inflect.irregular 'business_registry_cache', 'business_registry_caches'
end

View file

@ -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

View file

@ -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