summaryrefslogtreecommitdiff
path: root/spec/factories/users.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-05-26 14:40:20 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-05-26 14:40:20 +0000
commit581d2902d00f62bb789ba56f80bbb750f989e6cf (patch)
tree6b77017dd0200cf633643d22cc53acc470e049ce /spec/factories/users.rb
parentc85ab58601ab9ac12cd72fa8a96b298875b37039 (diff)
downloadgitlab-ce-581d2902d00f62bb789ba56f80bbb750f989e6cf.tar.gz
Add latest changes from gitlab-org/security/gitlab@13-0-stable-ee
Diffstat (limited to 'spec/factories/users.rb')
-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 2f5cc404143..7e121b10632 100644
--- a/spec/factories/users.rb
+++ b/spec/factories/users.rb
@@ -48,6 +48,10 @@ FactoryBot.define do
after(:build) { |user, _| user.block! }
end
+ trait :unconfirmed do
+ confirmed_at { nil }
+ end
+
trait :with_avatar do
avatar { fixture_file_upload('spec/fixtures/dk.png') }
end