diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-02-01 13:21:28 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-02-10 11:51:14 -0500 |
commit | 191bcb4d1b5e983583e183d8945f638604c7f0e1 (patch) | |
tree | 98aa8d8ea8b6d8eb56158cde0127cbea630c610c /spec/factories | |
parent | 4a9258371bf25ef0ce8687c3d7750d06b4337fe4 (diff) | |
download | gitlab-ce-191bcb4d1b5e983583e183d8945f638604c7f0e1.tar.gz |
Don't perform Devise trackable updates on blocked User recordsrs-warden-blocked-users
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/users.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories/users.rb b/spec/factories/users.rb index c6f7869516e..1732b1a0081 100644 --- a/spec/factories/users.rb +++ b/spec/factories/users.rb @@ -14,6 +14,14 @@ FactoryGirl.define do admin true end + trait :blocked do + after(:build) { |user, _| user.block! } + end + + trait :external do + external true + end + trait :two_factor do two_factor_via_otp end |