Honor legacy domains without versions #2778

This commit is contained in:
Priit Tark 2015-07-20 17:19:25 +03:00
parent 4b1bf92a27
commit c10ad96947
2 changed files with 116 additions and 109 deletions

View file

@ -1,3 +1,4 @@
- if version.present? && domain.present?
- children = HashWithIndifferentAccess.new(version.children) - children = HashWithIndifferentAccess.new(version.children)
- nameservers = children[:nameservers] || [] - nameservers = children[:nameservers] || []
- tech_contacts = children[:tech_contacts] || [] - tech_contacts = children[:tech_contacts] || []

View file

@ -184,6 +184,12 @@ describe 'EPP Contact', epp: true do
response[:result_code].should == '2005' response[:result_code].should == '2005'
end end
fit 'should not allow spaces in custom code' do
response = create_request({ id: { value: '1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111' } })
response[:msg].should == 'is invalid [code]'
response[:result_code].should == '2005'
end
it 'should not saves ident type with wrong country code' do it 'should not saves ident type with wrong country code' do
extension = { extension = {
ident: { ident: {