Updated contact org error

This commit is contained in:
Priit Tark 2015-03-10 11:18:16 +02:00
parent 2d5787a308
commit 6ae1851868
3 changed files with 6 additions and 4 deletions

View file

@ -147,7 +147,8 @@ describe 'EPP Contact', epp: true do
it 'should return parameter value policy errror' do
response = create_request({ postalInfo: { org: { value: 'should not save' } } })
response[:msg].should == 'Parameter value policy error: postalInfo > org [org]'
response[:msg].should ==
'Parameter value policy error. Org should be blank: postalInfo > org [org]'
response[:result_code].should == '2306'
Contact.last.org_name.should == nil
@ -282,7 +283,8 @@ describe 'EPP Contact', epp: true do
postalInfo: { org: { value: 'should not save' } }
}
})
response[:msg].should == 'Parameter value policy error: postalInfo > org [org]'
response[:msg].should ==
'Parameter value policy error. Org should be blank: postalInfo > org [org]'
response[:result_code].should == '2306'
Contact.find_by(code: 'sh8013').org_name.should == nil