Improve tests

#746
This commit is contained in:
Artur Beljajev 2018-03-06 11:05:08 +02:00
parent ecc68f083d
commit d42bdfbc0f
2 changed files with 5 additions and 4 deletions

View file

@ -54,6 +54,11 @@ class EppDomainTransferRequestTest < ActionDispatch::IntegrationTest
end
end
def test_reuses_identical_contact
post '/epp/command/transfer', { frame: request_xml }, { 'HTTP_COOKIE' => 'session=api_goodnames' }
assert_equal 1, @new_registrar.contacts.where(name: 'William').size
end
def test_saves_legal_document
assert_difference -> { @domain.legal_documents(true).size } do
post '/epp/command/transfer', { frame: request_xml }, { 'HTTP_COOKIE' => 'session=api_goodnames' }