diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-25 12:10:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-25 12:10:16 +0300 |
commit | acad0870f7fd0cfe163a9d3a248a4a3eb8ca343d (patch) | |
tree | afc7b07db38fbc23a5becced3244776578b01d55 /spec/factories | |
parent | ccb37f9759b534764404b50e31daf8c18e6def91 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/users.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/factories/users.rb b/spec/factories/users.rb index a9d5da93bc5..67c857165fc 100644 --- a/spec/factories/users.rb +++ b/spec/factories/users.rb @@ -148,6 +148,11 @@ FactoryBot.define do end end + trait :invalid do + first_name { 'A' * 130 } # Exceed `first_name` character limit in model to make it invalid + to_create { |user| user.save!(validate: false) } + end + transient do developer_projects { [] } maintainer_projects { [] } |