Repositories: no error message on creating a repository with the same name as an existing repository
Steps to Reproduce
1. Create a repository
2. Repeat step 1 with the same name
3. Note lack of error message
Created: waldenraines on October 21, 2013 21:51 +00:00
Imported from https://api.github.com/repos/Katello/katello/issues/3237
Fixes #4045: Repository name and label validations properly handled.
Repository name and label validation were being handled improperly
and without the same format as other model validations. This creates
and proper active record validators for each and provides a message
indicating to the user the scope of the validation (i.e. Product).