summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-06-19 15:21:25 +0100
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-06-19 15:48:24 +0100
commit4449f57ea627aa92e7f011a488c11285465057d2 (patch)
treefd9a9c8f5975a0367b787e89dcd27aa77d69930b /spec
parentdb33c0fb63d50e31751fb580d502de38ee665385 (diff)
downloadgitlab-ce-4449f57ea627aa92e7f011a488c11285465057d2.tar.gz
Diffstat (limited to 'spec')
-rw-r--r--spec/models/user_spec.rb2
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