summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-10-27 10:15:45 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-10-27 10:15:45 +0000
commit14b92217e768aa4f3ce2d8b30f2c2acbdfdd8f6a (patch)
treea0bfb2e384a89525c68c09f54fa6b1b9005e4d93 /spec/factories
parente8ae58a7c189407375b3f575b7aa8fb17a1e4f99 (diff)
downloadgitlab-ce-14b92217e768aa4f3ce2d8b30f2c2acbdfdd8f6a.tar.gz
Add latest changes from gitlab-org/security/gitlab@14-4-stable-ee
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/users.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/users.rb b/spec/factories/users.rb
index 325f62f6028..8aa9654956e 100644
--- a/spec/factories/users.rb
+++ b/spec/factories/users.rb
@@ -15,6 +15,10 @@ FactoryBot.define do
admin { true }
end
+ trait :public_email do
+ public_email { email }
+ end
+
trait :blocked do
after(:build) { |user, _| user.block! }
end