mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Merged the address types
This commit is contained in:
parent
7c8e7e22af
commit
c4deed6a55
17 changed files with 90 additions and 103 deletions
|
@ -10,8 +10,7 @@ describe Address, '.extract_params' do
|
|||
Fabricate(:country, iso: 'EE')
|
||||
ph = { postalInfo: { name: 'fred', addr: { cc: 'EE', city: 'Village', street: %w(street1 street2) } } }
|
||||
expect(Address.extract_attributes(ph[:postalInfo])).to eq({
|
||||
international_address_attributes: {
|
||||
name: 'fred',
|
||||
address_attributes: {
|
||||
city: 'Village',
|
||||
country_id: 1,
|
||||
street: 'street1',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue