mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Rubocop style fixes
This commit is contained in:
parent
b8584de4d6
commit
ea2b64bc69
3 changed files with 15 additions and 18 deletions
|
@ -1,5 +1,5 @@
|
|||
module EppContactXmlHelper
|
||||
def create_contact_xml(xml_params={})
|
||||
def create_contact_xml(xml_params = {})
|
||||
defaults = {
|
||||
postalInfo: {
|
||||
name: { value: 'John Doe' },
|
||||
|
@ -18,7 +18,7 @@ module EppContactXmlHelper
|
|||
EppXml::Contact.create(xml_params)
|
||||
end
|
||||
|
||||
def update_contact_xml(xml_params={})
|
||||
def update_contact_xml(xml_params = {})
|
||||
defaults = {
|
||||
id: { value: 'asd123123er' },
|
||||
authInfo: { pw: { value: 'password' } },
|
||||
|
@ -34,19 +34,19 @@ module EppContactXmlHelper
|
|||
EppXml::Contact.update(xml_params)
|
||||
end
|
||||
|
||||
def delete_contact_xml(xml_params={})
|
||||
def delete_contact_xml(xml_params = {})
|
||||
defaults = { id: { value: 'sh8012' } }
|
||||
xml_params = defaults.deep_merge(xml_params)
|
||||
EppXml::Contact.delete(xml_params)
|
||||
end
|
||||
|
||||
def info_contact_xml(xml_params={})
|
||||
def info_contact_xml(xml_params = {})
|
||||
defaults = { id: { value: 'sh8012' }, authInfo: { pw: { value: 'password' } } }
|
||||
xml_params = defaults.deep_merge(xml_params)
|
||||
EppXml::Contact.info(xml_params)
|
||||
end
|
||||
|
||||
def check_contact_xml(xml_params={})
|
||||
def check_contact_xml(xml_params = {})
|
||||
defaults = {
|
||||
id: { value: 'ad123c3' }
|
||||
}
|
||||
|
@ -69,10 +69,8 @@ module EppContactXmlHelper
|
|||
</command>
|
||||
</epp>'
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
RSpec.configure do |c|
|
||||
c.include EppContactXmlHelper
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue