Improve tests

#694
This commit is contained in:
Artur Beljajev 2018-02-19 02:40:25 +02:00
parent 07e40d61dd
commit 34f1e2be2f
2 changed files with 13 additions and 0 deletions

View file

@ -12,6 +12,12 @@ class EppDomainTransferRequestTest < ActionDispatch::IntegrationTest
assert_equal 1, Nokogiri::XML(response.body).css('result').size
end
def test_creates_new_domain_transfer
assert_difference -> { @domain.domain_transfers.size } do
post '/epp/command/transfer', { frame: request_xml }, { 'HTTP_COOKIE' => 'session=api_goodnames' }
end
end
def test_approves_automatically_if_auto_approval_is_enabled
post '/epp/command/transfer', { frame: request_xml }, { 'HTTP_COOKIE' => 'session=api_goodnames' }
assert_equal 'serverApproved', Nokogiri::XML(response.body).xpath('//domain:trStatus', 'domain' =>