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:
Diffstat (limited to 'spec/support/helpers/project_helpers.rb')
-rw-r--r--spec/support/helpers/project_helpers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/helpers/project_helpers.rb b/spec/support/helpers/project_helpers.rb
index 2ea6405e48c..ef8947ab340 100644
--- a/spec/support/helpers/project_helpers.rb
+++ b/spec/support/helpers/project_helpers.rb
@@ -17,12 +17,12 @@ module ProjectHelpers
end
end
- def update_feature_access_level(project, access_level)
+ def update_feature_access_level(project, access_level, additional_params = {})
features = ProjectFeature::FEATURES.dup
features.delete(:pages)
params = features.each_with_object({}) { |feature, h| h["#{feature}_access_level"] = access_level }
- project.update!(params)
+ project.update!(params.merge(additional_params))
end
def create_project_with_statistics(namespace = nil, with_data: false, size_multiplier: 1)