Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-10-15 10:59:58 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-10-15 10:59:58 +0400
commit2e8b0fa5cf9e70c55bd1dbb254db3f9aa45b23e9 (patch)
tree8dc84b44f18a23ea55249b9425d454541dd77979 /spec/factories.rb
parent6fff92e984c8977bb1b8d5424e8b81796e2ccb07 (diff)
Oauth users and users created by admin should be confirmed immediatly
Diffstat (limited to 'spec/factories.rb')
-rw-r--r--spec/factories.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories.rb b/spec/factories.rb
index 56561fe4595..91ef5086a9e 100644
--- a/spec/factories.rb
+++ b/spec/factories.rb
@@ -23,6 +23,10 @@ FactoryGirl.define do
end
factory :admin, traits: [:admin]
+
+ after :create do |u|
+ u.confirm!
+ end
end
factory :project do