move on functionality for separate service object and updated tests

This commit is contained in:
olegphenomenon 2021-12-31 13:03:17 +02:00
parent 9b07b5ff0f
commit ae269c6772
10 changed files with 106 additions and 94 deletions

View file

@ -8,6 +8,7 @@ class ReppV1DomainsContactsTest < ActionDispatch::IntegrationTest
token = "Basic #{token}"
@auth_headers = { 'Authorization' => token }
Spy.on_instance_method(ValidateDnssec, :validate_dnssec).and_return(true)
end
def test_shows_existing_domain_contacts

View file

@ -8,6 +8,7 @@ class ReppV1DomainsDnssecTest < ActionDispatch::IntegrationTest
token = "Basic #{token}"
@auth_headers = { 'Authorization' => token }
Spy.on_instance_method(ValidateDnssec, :validate_dnssec).and_return(true)
end
def test_shows_dnssec_keys_associated_with_domain

View file

@ -8,6 +8,7 @@ class ReppV1DomainsNameserversTest < ActionDispatch::IntegrationTest
token = "Basic #{token}"
@auth_headers = { 'Authorization' => token }
Spy.on_instance_method(ValidateDnssec, :validate_dnssec).and_return(true)
end
def test_can_add_new_nameserver

View file

@ -8,6 +8,7 @@ class ReppV1DomainsUpdateTest < ActionDispatch::IntegrationTest
token = "Basic #{token}"
@auth_headers = { 'Authorization' => token }
Spy.on_instance_method(ValidateDnssec, :validate_dnssec).and_return(true)
end
def test_updates_transfer_code_for_domain