added abbility for added extenstions prohibited status

This commit is contained in:
olegphenomenon 2021-09-21 16:45:09 +03:00
parent f9436062a6
commit 1bb5dddd58
10 changed files with 32 additions and 25 deletions

View file

@ -22,14 +22,14 @@ class DomainUpdateConfirmJobTest < ActiveSupport::TestCase
def test_registrant_locked_domain
refute @domain.locked_by_registrant?
@domain.apply_registry_lock
@domain.apply_registry_lock(extensionsProhibited: false)
assert @domain.locked_by_registrant?
assert_equal(@domain.registrar.notifications.last.text, "Domain #{@domain.name} has been locked by registrant")
end
def test_registrant_unlocked_domain
refute @domain.locked_by_registrant?
@domain.apply_registry_lock
@domain.apply_registry_lock(extensionsProhibited: false)
assert @domain.locked_by_registrant?
@domain.remove_registry_lock
refute @domain.locked_by_registrant?