mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 07:52:04 +02:00
added abbility for added extenstions prohibited status
This commit is contained in:
parent
f9436062a6
commit
1bb5dddd58
10 changed files with 32 additions and 25 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue