-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RUBY-3220] Add validation for project name format (#902)
* [RUBY-3220] Add format validation for project name and update tests - Add regex format validation to `name` attribute in `ProjectNameStep` to ensure it only contains letters, underscores, hyphens, and numbers. - Update project factory to remove periods from generated project names. - Enhance `ProjectNameStep` spec to test valid and invalid name formats, ensuring proper validation messages are displayed. * [RUBY-3220] Add conditional validation for project name and refactor tests - Updated `project_name_step.rb` to include a conditional validation for `name` presence. - Refactored `project_name_step_spec.rb` to improve readability and organization. - Grouped test cases logically and used more descriptive variable names. * [RUBY-3220] Add back shared example to `project_name_step_spec.rb`
- Loading branch information
Showing
3 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters