Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-06-03 00:09:25 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-06-03 00:09:25 +0300
commit6ddc820225c148a923a154ab6d6f0a8c791a089d (patch)
tree23a648fd2a83f54d5535dda197ed1ac6e5315493 /spec/factories
parent9b40f0e0d63ff2a8ed1686f8713701688600a998 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/application_settings.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/application_settings.rb b/spec/factories/application_settings.rb
index c28d3c20a86..844e21df60c 100644
--- a/spec/factories/application_settings.rb
+++ b/spec/factories/application_settings.rb
@@ -5,5 +5,9 @@ FactoryBot.define do
default_projects_limit { 42 }
import_sources { [] }
restricted_visibility_levels { [] }
+
+ after(:build) do |settings|
+ settings.ensure_key_restrictions!
+ end
end
end