mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 01:47:18 +02:00
parent
e712e60686
commit
07f49d8ca6
2 changed files with 5 additions and 5 deletions
|
@ -262,8 +262,8 @@ class Contact < ActiveRecord::Base
|
||||||
Setting.address_processing
|
Setting.address_processing
|
||||||
end
|
end
|
||||||
|
|
||||||
def address_attributes
|
def address_attribute_names
|
||||||
%i(
|
%w(
|
||||||
city
|
city
|
||||||
street
|
street
|
||||||
zip
|
zip
|
||||||
|
|
|
@ -394,16 +394,16 @@ RSpec.describe Contact, db: false do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '::address_attributes', db: false do
|
describe '::address_attribute_names', db: false do
|
||||||
it 'returns address attributes' do
|
it 'returns address attributes' do
|
||||||
attributes = %i(
|
attributes = %w(
|
||||||
city
|
city
|
||||||
street
|
street
|
||||||
zip
|
zip
|
||||||
country_code
|
country_code
|
||||||
state
|
state
|
||||||
)
|
)
|
||||||
expect(described_class.address_attributes).to eq(attributes)
|
expect(described_class.address_attribute_names).to eq(attributes)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue