Inherit all the interactors from base one

This commit is contained in:
Alex Sherman 2020-11-10 15:06:32 +05:00
parent f97dff6002
commit 3c7fa88463
11 changed files with 35 additions and 47 deletions

View file

@ -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])
context = Domain::ForceDeleteInteractor::Base.call(domain: @domain, type: :fast_track)
context = Domain::ForceDeleteInteractor::SetForceDelete.call(domain: @domain, type: :fast_track)
assert_not context.success?
assert_equal 'Force delete procedure cannot be scheduled while a domain is discarded', context.message

View file

@ -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::ForceDeleteInteractor::Base.call(domain: @domain, type: :fast_track)
Domain::ForceDeleteInteractor::SetForceDelete.call(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