Fix all tests

This commit is contained in:
Martin Lensment 2014-07-03 17:53:15 +03:00
parent 9def6a7c27
commit 48710b41f7
4 changed files with 5 additions and 6 deletions

View file

@ -1,13 +1,12 @@
module Epp::ContactsHelper
def create_contact
ph = params_hash
ph = params_hash['epp']['command']['create']['create']
@contact = Contact.new(
code: ph[:id],
name: ph[:postalInfo][:name],
phone: ph[:voice],
email: ph[:email],
reg_no: ph[:ident]
email: ph[:email]
)
@contact.addresses << Address.new(