Add a few tests to epp helper

This commit is contained in:
Martin Lensment 2014-08-14 17:18:27 +03:00
parent 8df3051fed
commit 38eb98795c
3 changed files with 85 additions and 15 deletions

View file

@ -243,7 +243,7 @@ describe 'EPP Domain', epp: true do
end
it 'checks a domain' do
response = epp_request('domains/check.xml')
response = epp_request(domain_check_xml, :xml)
expect(response[:result_code]).to eq('1000')
expect(response[:msg]).to eq('Command completed successfully')
@ -253,7 +253,7 @@ describe 'EPP Domain', epp: true do
Fabricate(:domain, name: 'example.ee')
response = epp_request('domains/check.xml')
response = epp_request(domain_check_xml, :xml)
domain = response[:parsed].css('resData chkData cd').first
name = domain.css('name').first
reason = domain.css('reason').first