Refactor user detail spec for improved validation clarity
What does this MR do and why?
Refactor user detail spec for improved validation clarity
This refactor enhances the user detail specifications by consolidating validation tests for attributes such as discord, bluesky, mastodon, and orcid. The changes improve readability and maintainability of the tests, ensuring that error messages are clearly defined and validation rules are consistently applied.
Technical changes:
- Removed redundant context blocks for attribute validations
- Introduced error messages for clarity in validation failures
- Streamlined the use of subject and let_it_be for better test setup
Changelog: changed
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #577060 (closed)