mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Remove domain namespace
This commit is contained in:
parent
bce39e3404
commit
e62f0a077a
19 changed files with 143 additions and 157 deletions
|
@ -111,7 +111,7 @@ class NewDomainForceDeleteTest < ActiveSupport::TestCase
|
|||
|
||||
def test_force_delete_cannot_be_scheduled_when_a_domain_is_discarded
|
||||
@domain.update!(statuses: [DomainStatus::DELETE_CANDIDATE])
|
||||
result = Domain::ForceDeleteInteraction::SetForceDelete.run(domain: @domain, type: :fast_track)
|
||||
result = ForceDeleteInteraction::SetForceDelete.run(domain: @domain, type: :fast_track)
|
||||
|
||||
assert_not result.valid?
|
||||
assert_not @domain.force_delete_scheduled?
|
||||
|
|
|
@ -414,7 +414,7 @@ class DomainTest < ActiveSupport::TestCase
|
|||
force_delete_date: nil)
|
||||
@domain.update(template_name: 'legal_person')
|
||||
travel_to Time.zone.parse('2010-07-05')
|
||||
Domain::ForceDeleteInteraction::SetForceDelete.run!(domain: @domain, type: :fast_track)
|
||||
ForceDeleteInteraction::SetForceDelete.run!(domain: @domain, type: :fast_track)
|
||||
assert(@domain.force_delete_scheduled?)
|
||||
other_registrant = Registrant.find_by(code: 'jane-001')
|
||||
@domain.pending_json['new_registrant_id'] = other_registrant.id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue