internetee-registry/app
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
..
assets removed banklinks, addede everypay banner 2022-06-02 09:37:20 +03:00
controllers feat: add admin contact ident type validation 2025-02-03 13:59:03 +02:00
helpers Removed and updated additional files 2022-10-13 14:06:33 +03:00
interactions Fix ProcessClientHold tests and implementation 2025-03-06 15:18:16 +02:00
jobs Refactor force delete notifications and improve status handling 2025-02-17 12:31:51 +02:00
lib fixed tests 2022-11-07 15:59:48 +02:00
mailers Improved verification email translations 2025-01-31 12:49:14 +02:00
models Merge pull request #2723 from internetee/company-validator-during-creation 2025-02-12 10:33:28 +02:00
presenters Removed and updated additional files 2022-10-13 14:06:33 +03:00
services Added birthday ident verification 2025-01-27 16:26:20 +02:00
validators Fixed ransack admin search 2023-04-06 13:54:03 +03:00
views feat: add admin contact ident type validation 2025-02-03 13:59:03 +02:00