mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Fix address spec
This commit is contained in:
parent
6eaa9215b1
commit
c123cd10f7
1 changed files with 1 additions and 1 deletions
|
@ -11,8 +11,8 @@ describe Address, '.extract_params' do
|
||||||
ph = { postalInfo: { name: 'fred', addr: { cc: 'EE', city: 'Village', street: %w(street1 street2) } } }
|
ph = { postalInfo: { name: 'fred', addr: { cc: 'EE', city: 'Village', street: %w(street1 street2) } } }
|
||||||
expect(Address.extract_attributes(ph[:postalInfo])).to eq({
|
expect(Address.extract_attributes(ph[:postalInfo])).to eq({
|
||||||
address_attributes: {
|
address_attributes: {
|
||||||
city: 'Village',
|
|
||||||
country_id: 1,
|
country_id: 1,
|
||||||
|
city: 'Village',
|
||||||
street: 'street1',
|
street: 'street1',
|
||||||
street2: 'street2'
|
street2: 'street2'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue