mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 08:22:05 +02:00
Merge branch 'master' of github.com:internetee/registry
This commit is contained in:
commit
611130addc
5 changed files with 89 additions and 3 deletions
|
@ -87,10 +87,12 @@ end
|
|||
|
||||
describe Contact, '.extract_params' do
|
||||
it 'returns params hash'do
|
||||
ph = { id: '123123', email: 'jdoe@example.com', postalInfo: { name: 'fred', addr: { cc: 'EE' } } }
|
||||
ph = { id: '123123', email: 'jdoe@example.com', authInfo: { pw: 'asde' },
|
||||
postalInfo: { name: 'fred', addr: { cc: 'EE' } } }
|
||||
expect(Contact.extract_attributes(ph)).to eq({
|
||||
code: '123123',
|
||||
email: 'jdoe@example.com'
|
||||
email: 'jdoe@example.com',
|
||||
auth_info: 'asde'
|
||||
})
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue