internetee-registry/app
oleghasjanov 95a6403595 Fix ProcessClientHold tests and implementation
This commit addresses several issues with the ProcessClientHold class and its tests:

1. Changed notification text in notify_client_hold method from 'force_delete_set_on_domain'
   to 'hold_client_on_domain' to better reflect the actual action being performed.
   Added corresponding translation key in locales/en.yml.

2. Fixed the test_send_mail_delivers_email test by using stub method instead of
   redefining DomainDeleteMailer.forced, which was causing conflicts with other tests.
   This ensures that tests are isolated and don't affect each other.

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

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

5. Added proper error handling in tests to ensure methods don't raise exceptions.

The changes ensure that the ProcessClientHold class correctly handles client hold
status for domains in the force delete process, properly notifies registrars with
appropriate messages, and sends emails when required.
2025-03-06 15:32:39 +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 Fix ProcessClientHold tests and implementation 2025-03-06 15:32:39 +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