mirror of
https://github.com/internetee/registry.git
synced 2025-08-16 22:43:50 +02:00
added test for domain transfer iteraction
This commit is contained in:
parent
2620933543
commit
4d9c81f63b
17 changed files with 385 additions and 41 deletions
|
@ -1,6 +1,17 @@
|
|||
require 'test_helper'
|
||||
|
||||
class APINameserversPutTest < ApplicationIntegrationTest
|
||||
def setup
|
||||
# Mock DNSValidator to return success
|
||||
@original_validate = DNSValidator.method(:validate)
|
||||
DNSValidator.define_singleton_method(:validate) { |**args| { errors: [] } }
|
||||
end
|
||||
|
||||
def teardown
|
||||
# Restore original validate method
|
||||
DNSValidator.define_singleton_method(:validate, @original_validate)
|
||||
end
|
||||
|
||||
def test_replaces_registrar_nameservers
|
||||
old_nameserver_ids = [nameservers(:shop_ns1).id,
|
||||
nameservers(:airport_ns1).id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue