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:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-02-04 14:57:46 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-02-04 14:57:46 +0300
commitb4c36130cc285ac25caef842040e44898eaf858d (patch)
treea8401b27cec6920b9a6e7fce6592e398bc35c54d /features/steps/shared
parent6a5a175d9fd1d72cdaab033eefc4191561e619cc (diff)
Rename allow_guest_to_access_builds to public_builds
Diffstat (limited to 'features/steps/shared')
-rw-r--r--features/steps/shared/project.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/features/steps/shared/project.rb b/features/steps/shared/project.rb
index d9c75d12238..1200eb319d7 100644
--- a/features/steps/shared/project.rb
+++ b/features/steps/shared/project.rb
@@ -240,6 +240,14 @@ module SharedProject
end
end
+ step 'public access for builds is enabled' do
+ @project.update(public_builds: true)
+ end
+
+ step 'public access for builds is disabled' do
+ @project.update(public_builds: false)
+ end
+
def user_owns_project(user_name:, project_name:, visibility: :private)
user = user_exists(user_name, username: user_name.gsub(/\s/, '').underscore)
project = Project.find_by(name: project_name)