internetee-registry/test
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
..
fixtures feat: add admin contact ident type validation 2025-02-03 13:59:03 +02:00
helpers fixed tests: updated gems; improve company register status job and test stability 2024-11-13 15:04:39 +02:00
integration Merge pull request #2723 from internetee/company-validator-during-creation 2025-02-12 10:33:28 +02:00
interactions Fix ProcessClientHold tests and implementation 2025-03-06 15:32:39 +02:00
jobs updated test 2025-02-17 13:16:14 +02:00
learning Removed date_from attribute 2023-12-19 09:38:00 +02:00
lib Fix test naming error 2022-10-28 14:00:18 +03:00
mailers added more tests 2024-11-08 12:45:12 +02:00
models Merge pull request #2751 from internetee/2742-clienthold-status-must-not-me-reset-unless-the-forcedelete-status-is-reset 2025-02-19 15:38:17 +02:00
services Corrected tests 2024-11-14 08:37:09 +02:00
support/assertions Pump minitest version 2020-02-05 12:43:25 +05:00
system/admin_area Corrected tests 2023-06-29 14:00:44 +03:00
tasks business contact validation + tests 2024-11-08 12:45:12 +02:00
application_system_test_case.rb comment out not relevant tests 2024-02-02 09:08:04 +02:00
test_helper.rb removed extra line 2024-11-14 10:16:24 +02:00