Add Domain#transfer

This commit is contained in:
Artur Beljajev 2018-01-20 22:38:14 +02:00
parent e36e31f6d9
commit 624cc70bef
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,16 @@
require 'test_helper'
class DomainTest < ActiveSupport::TestCase
def setup
@domain = domains(:shop)
end
def test_transfers_domain
old_auth_info = @domain.auth_info
new_registrar = registrars(:goodnames)
@domain.transfer(new_registrar)
assert_equal new_registrar, @domain.registrar
refute_same @domain.auth_info, old_auth_info
end
end