diff --git a/app/models/contact.rb b/app/models/contact.rb index db9fc3dc1..4899399f1 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -262,8 +262,8 @@ class Contact < ActiveRecord::Base Setting.address_processing end - def address_attributes - %i( + def address_attribute_names + %w( city street zip diff --git a/spec/models/contact_spec.rb b/spec/models/contact_spec.rb index 76c48f0ff..2f3d7efe3 100644 --- a/spec/models/contact_spec.rb +++ b/spec/models/contact_spec.rb @@ -394,16 +394,16 @@ RSpec.describe Contact, db: false do end end - describe '::address_attributes', db: false do + describe '::address_attribute_names', db: false do it 'returns address attributes' do - attributes = %i( + attributes = %w( city street zip country_code state ) - expect(described_class.address_attributes).to eq(attributes) + expect(described_class.address_attribute_names).to eq(attributes) end end end