internetee-registry/app/interactions/domains
oleghasjanov 29c6c8ff44 Fix ProcessClientHold tests and implementation
This commit addresses several issues with the ProcessClientHold class and its tests:

1. Fixed the test_send_mail_delivers_email test by properly mocking the
   DomainDeleteMailer.forced method with correct parameter signatures
   and adding template_name to the domain.

2. Updated all tests to use Domain.stub_any_instance(:force_delete_scheduled?, true)
   to properly stub the force_delete_scheduled? method.

3. Improved test assertions to ensure proper behavior of the ProcessClientHold class,
   including notification creation and client hold status setting.

4. Added proper error handling in tests to ensure methods don't raise exceptions
   and restore original method implementations after testing.

The changes ensure that the ProcessClientHold class correctly handles client hold
status for domains in the force delete process, properly notifies registrars,
and sends emails when required.
2025-03-06 15:18:16 +02:00
..
bulk_renew fixed codeclimate errors 2021-09-09 13:06:51 +03:00
cancel_force_delete added update whois job skipping for lifting FG 2025-02-03 14:08:50 +02:00
check_balance Fix CC issues 2021-05-06 12:17:19 +05:00
client_hold Fix ProcessClientHold tests and implementation 2025-03-06 15:18:16 +02:00
delete Fix some interaction calls 2021-04-26 14:03:41 +05:00
delete_confirm Fix some interaction calls 2021-04-26 14:03:41 +05:00
delete_confirm_email Rename email sending interactor 2020-12-08 13:16:30 +05:00
expire_period fixed codeclimate errors 2021-09-09 14:05:29 +03:00
expired_pendings fixed codeclimate errors (partically) 2021-09-09 09:19:09 +03:00
force_delete fix: handle missing force_delete_start date 2025-02-21 10:40:39 +02:00
force_delete_email fix poll message spam after validation email 2022-04-12 15:32:21 +03:00
force_delete_lift Refactored and corrected code for domain force delete 2023-05-17 16:04:40 +03:00
redemption_grace_period fixed codeclimate errors (partically) 2021-09-09 09:19:09 +03:00
update_confirm fixed codeclimate errors 2021-09-09 13:06:51 +03:00