mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Rubocop style fixes
This commit is contained in:
parent
b8584de4d6
commit
ea2b64bc69
3 changed files with 15 additions and 18 deletions
|
@ -58,8 +58,7 @@ module Epp::ContactsHelper
|
||||||
xml_attrs_present?(@ph, [%w(postalInfo name), %w(postalInfo addr city), %w(postalInfo addr cc),
|
xml_attrs_present?(@ph, [%w(postalInfo name), %w(postalInfo addr city), %w(postalInfo addr cc),
|
||||||
%w(ident), %w(voice), %w(email)])
|
%w(ident), %w(voice), %w(email)])
|
||||||
|
|
||||||
|
epp_errors.empty? # unless @ph['postalInfo'].is_a?(Hash) || @ph['postalInfo'].is_a?(Array)
|
||||||
return epp_errors.empty? #unless @ph['postalInfo'].is_a?(Hash) || @ph['postalInfo'].is_a?(Array)
|
|
||||||
|
|
||||||
# (epp_errors << Address.validate_postal_info_types(parsed_frame)).flatten!
|
# (epp_errors << Address.validate_postal_info_types(parsed_frame)).flatten!
|
||||||
# xml_attrs_array_present?(@ph['postalInfo'], [%w(name), %w(addr city), %w(addr cc)])
|
# xml_attrs_array_present?(@ph['postalInfo'], [%w(name), %w(addr city), %w(addr cc)])
|
||||||
|
|
|
@ -116,7 +116,7 @@ describe 'EPP Contact', epp: true do
|
||||||
it 'fails with wrong authentication info' do
|
it 'fails with wrong authentication info' do
|
||||||
Fabricate(:contact, code: 'sh8013', auth_info: 'password_wrong')
|
Fabricate(:contact, code: 'sh8013', auth_info: 'password_wrong')
|
||||||
|
|
||||||
response = epp_request(update_contact_xml({id: { value: 'sh8013'}}), :xml, :elkdata ) #('contacts/update.xml')
|
response = epp_request(update_contact_xml({ id: { value: 'sh8013' } }), :xml, :elkdata)
|
||||||
|
|
||||||
expect(response[:msg]).to eq('Authorization error')
|
expect(response[:msg]).to eq('Authorization error')
|
||||||
expect(response[:result_code]).to eq('2201')
|
expect(response[:result_code]).to eq('2201')
|
||||||
|
|
|
@ -69,10 +69,8 @@ module EppContactXmlHelper
|
||||||
</command>
|
</command>
|
||||||
</epp>'
|
</epp>'
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
RSpec.configure do |c|
|
RSpec.configure do |c|
|
||||||
c.include EppContactXmlHelper
|
c.include EppContactXmlHelper
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue