internetee-registry/test
oleghasjanov f866b549b5 # Improve email validation regex pattern and add comprehensive tests
This commit updates the email validation pattern in Truemail configuration to better handle various email format edge cases. The changes include:
Refine email regex pattern in config/initializers/truemail.rb to properly validate:
RFC compliant local parts with allowed special characters
Proper domain name formatting
Prevention of consecutive dots in both local part and domain
Leading and trailing dots in local part
Add comprehensive test cases in test/interactions/email_check_test.rb to verify:
Valid email formats like standard addresses, underscore usage, and dot-atom formats
Invalid email formats including consecutive dots, leading/trailing dots, and invalid characters
These changes ensure our email validation is more RFC-compliant while still being strict enough to catch common errors. The test suite now explicitly validates both positive and negative test cases for email format validation.
2025-03-10 14:24:02 +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 # Improve email validation regex pattern and add comprehensive tests 2025-03-10 14:24:02 +02:00
jobs refactor 2025-03-06 11:51:01 +02:00
learning Removed date_from attribute 2023-12-19 09:38:00 +02:00
lib fix: handle HTTPClient::KeepAliveDisconnected in OrgRegistrantPhoneCheckerJob 2025-03-06 11:38:09 +02: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