mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Add Domain#transfer
This commit is contained in:
parent
e36e31f6d9
commit
624cc70bef
2 changed files with 27 additions and 0 deletions
16
test/models/domain_test.rb
Normal file
16
test/models/domain_test.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue