Contact info request will return auth error when pw is incorrect

This commit is contained in:
Priit Tark 2015-04-01 11:52:53 +03:00
parent 06b65f057c
commit 15f9b4ae50
2 changed files with 7 additions and 5 deletions

View file

@ -534,11 +534,11 @@ describe 'EPP Contact', epp: true do
end
end
it 'returns no authorization error for wrong user and wrong pw' do
it 'returns authorization error for wrong user and wrong pw' do
login_as :registrar2 do
response = info_request({ authInfo: { pw: { value: 'wrong-pw' } } })
response[:msg].should == 'Command completed successfully'
response[:result_code].should == '1000'
response[:msg].should == 'Authorization error'
response[:result_code].should == '2201'
response[:results].count.should == 1
contact = response[:parsed].css('resData infData')