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
|
@ -8,6 +8,16 @@ class ReppV1DomainsCreateTest < ActionDispatch::IntegrationTest
|
|||
token = "Basic #{token}"
|
||||
|
||||
@auth_headers = { 'Authorization' => token }
|
||||
|
||||
# Mock DNSValidator to return success by default
|
||||
# Individual tests can override this if they need to test DNS validation
|
||||
@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_creates_new_domain_successfully
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue