Rename Domain#domain_transfers to #transfers

#694
This commit is contained in:
Artur Beljajev 2018-02-19 05:05:35 +02:00
parent 25e34b388d
commit a7ed2f35d7
5 changed files with 8 additions and 8 deletions

View file

@ -16,14 +16,14 @@ class APIDomainTransfersTest < ActionDispatch::IntegrationTest
end
def test_creates_new_domain_transfer
assert_difference -> { @domain.domain_transfers.size } do
assert_difference -> { @domain.transfers.size } do
post '/repp/v1/domain_transfers', request_params, { 'HTTP_AUTHORIZATION' => http_auth_key }
end
end
def test_approves_automatically_if_auto_approval_is_enabled
post '/repp/v1/domain_transfers', request_params, { 'HTTP_AUTHORIZATION' => http_auth_key }
assert @domain.domain_transfers(true).last.approved?
assert @domain.transfers.last.approved?
end
def test_changes_registrar

View file

@ -34,7 +34,7 @@ class EppDomainTransferQueryTest < ActionDispatch::IntegrationTest
end
def test_no_domain_transfer
domains(:shop).domain_transfers.delete_all
domains(:shop).transfers.delete_all
post '/epp/command/transfer', { frame: request_xml }, { 'HTTP_COOKIE' => 'session=api_bestnames' }
assert_equal '2303', Nokogiri::XML(response.body).at_css('result')[:code]
end

View file

@ -13,7 +13,7 @@ class EppDomainTransferRequestTest < ActionDispatch::IntegrationTest
end
def test_creates_new_domain_transfer
assert_difference -> { @domain.domain_transfers.size } do
assert_difference -> { @domain.transfers.size } do
post '/epp/command/transfer', { frame: request_xml }, { 'HTTP_COOKIE' => 'session=api_goodnames' }
end
end