diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-10-15 09:59:58 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-10-15 09:59:58 +0300 |
commit | 2e8b0fa5cf9e70c55bd1dbb254db3f9aa45b23e9 (patch) | |
tree | 8dc84b44f18a23ea55249b9425d454541dd77979 /spec | |
parent | 6fff92e984c8977bb1b8d5424e8b81796e2ccb07 (diff) | |
download | gitlab-ce-2e8b0fa5cf9e70c55bd1dbb254db3f9aa45b23e9.tar.gz |
Oauth users and users created by admin should be confirmed immediatly
Diffstat (limited to 'spec')
-rw-r--r-- | spec/factories.rb | 4 |
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 |