diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-06-19 15:21:25 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-06-19 15:48:24 +0100 |
commit | 4449f57ea627aa92e7f011a488c11285465057d2 (patch) | |
tree | fd9a9c8f5975a0367b787e89dcd27aa77d69930b /spec | |
parent | db33c0fb63d50e31751fb580d502de38ee665385 (diff) | |
download | gitlab-ce-4449f57ea627aa92e7f011a488c11285465057d2.tar.gz |
refactors user model validations30725-reset-user-limits-when-unchecking-external-user
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/user_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 633f377a382..dbe75819663 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -462,6 +462,8 @@ describe User, models: true do end it 'ensures correct rights and limits for user' do + stub_config_setting(default_can_create_group: true) + expect { user.update_attributes(external: false) }.to change { user.can_create_group }.to(true) .and change { user.projects_limit }.to(current_application_settings.default_projects_limit) end |