summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-10-15 09:59:58 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-10-15 09:59:58 +0300
commit2e8b0fa5cf9e70c55bd1dbb254db3f9aa45b23e9 (patch)
tree8dc84b44f18a23ea55249b9425d454541dd77979 /spec
parent6fff92e984c8977bb1b8d5424e8b81796e2ccb07 (diff)
downloadgitlab-ce-2e8b0fa5cf9e70c55bd1dbb254db3f9aa45b23e9.tar.gz
Oauth users and users created by admin should be confirmed immediatly
Diffstat (limited to 'spec')
-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