mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
updated tests
This commit is contained in:
parent
85001399a4
commit
d81e7fa978
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ module Actions
|
|||
|
||||
assign_registrant
|
||||
assign_nameservers
|
||||
check_for_valid_nameserver unless Rails.env.test?
|
||||
check_for_valid_nameserver
|
||||
assign_domain_contacts
|
||||
domain.attach_default_contacts
|
||||
assign_expiry_time
|
||||
|
|
|
@ -8,7 +8,7 @@ class ReppV1DomainsCreateTest < ActionDispatch::IntegrationTest
|
|||
token = "Basic #{token}"
|
||||
|
||||
@auth_headers = { 'Authorization' => token }
|
||||
Spy.on_instance_method(Domains::NameserverValidator, :run).and_return({result: true, reason: ''})
|
||||
Spy.on_instance_method(Actions::DomainCreate, :check_for_valid_nameserver).and_return(true)
|
||||
end
|
||||
|
||||
def test_creates_new_domain_successfully
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue