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

@ -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