Basic contact check command implementation

This commit is contained in:
Andres Keskküla 2014-07-28 14:30:16 +03:00
parent 65bb5166cc
commit 1f29925004
6 changed files with 106 additions and 0 deletions

View file

@ -45,6 +45,16 @@ describe 'EPP Contact', epp: true do
expect(response[:msg]).to eq('Object does not exist')
end
it 'checks contacts' do
Fabricate(:contact)
Fabricate(:contact, id:'sh8914')
response = epp_request('contacts/check.xml')
expect(response[:result_code]).to eq('1000')
expect(response[:msg]).to eq('Command completed successfully')
end
end
end