diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-02-04 12:57:46 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-02-04 12:57:46 +0100 |
commit | b4c36130cc285ac25caef842040e44898eaf858d (patch) | |
tree | a8401b27cec6920b9a6e7fce6592e398bc35c54d /features/steps | |
parent | 6a5a175d9fd1d72cdaab033eefc4191561e619cc (diff) | |
download | gitlab-ce-b4c36130cc285ac25caef842040e44898eaf858d.tar.gz |
Rename allow_guest_to_access_builds to public_builds
Diffstat (limited to 'features/steps')
-rw-r--r-- | features/steps/shared/project.rb | 8 |
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) |