mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Refactor test #2809
This commit is contained in:
parent
4c981e736a
commit
dff3a80592
1 changed files with 18 additions and 22 deletions
|
@ -1008,10 +1008,8 @@ describe 'EPP Domain', epp: true do
|
||||||
|
|
||||||
# should show up in other registrar's poll
|
# should show up in other registrar's poll
|
||||||
|
|
||||||
response = login_as :registrar2 do
|
login_as :registrar2 do
|
||||||
epp_plain_request(@epp_xml.session.poll)
|
response = epp_plain_request(@epp_xml.session.poll)
|
||||||
end
|
|
||||||
|
|
||||||
response[:msg].should == 'Command completed successfully; ack to dequeue'
|
response[:msg].should == 'Command completed successfully; ack to dequeue'
|
||||||
msg_q = response[:parsed].css('msgQ')
|
msg_q = response[:parsed].css('msgQ')
|
||||||
msg_q.css('qDate').text.should_not be_blank
|
msg_q.css('qDate').text.should_not be_blank
|
||||||
|
@ -1023,14 +1021,12 @@ describe 'EPP Domain', epp: true do
|
||||||
value: '', attrs: { op: 'ack', msgID: msg_q.first['id'] }
|
value: '', attrs: { op: 'ack', msgID: msg_q.first['id'] }
|
||||||
})
|
})
|
||||||
|
|
||||||
response = login_as :registrar2 do
|
response = epp_plain_request(xml)
|
||||||
epp_plain_request(xml)
|
|
||||||
end
|
|
||||||
|
|
||||||
response[:msg].should == 'Command completed successfully'
|
response[:msg].should == 'Command completed successfully'
|
||||||
msg_q = response[:parsed].css('msgQ')
|
msg_q = response[:parsed].css('msgQ')
|
||||||
msg_q.first['id'].should_not be_blank
|
msg_q.first['id'].should_not be_blank
|
||||||
msg_q.first['count'].should == '0'
|
msg_q.first['count'].should == '0'
|
||||||
|
end
|
||||||
|
|
||||||
create_settings
|
create_settings
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue