mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Remove ForceDelete from statuses blocking confirmation
This commit is contained in:
parent
083be0d536
commit
269c5c284f
2 changed files with 13 additions and 1 deletions
|
@ -252,4 +252,16 @@ class NewDomainForceDeleteTest < ActiveSupport::TestCase
|
|||
assert @domain.force_delete_scheduled?
|
||||
assert @domain.pending_update?
|
||||
end
|
||||
|
||||
def test_force_delete_does_not_affect_registrant_update_confirmable
|
||||
@domain.schedule_force_delete(type: :soft)
|
||||
@domain.registrant_verification_asked!('test', User.last.id)
|
||||
@domain.save!
|
||||
@domain.reload
|
||||
|
||||
@domain.statuses << DomainStatus::PENDING_UPDATE
|
||||
|
||||
assert @domain.force_delete_scheduled?
|
||||
assert @domain.registrant_update_confirmable?(@domain.registrant_verification_token)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue