diff options
author | Rémy Coutable <remy@rymai.me> | 2016-09-21 12:00:38 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-09-21 12:00:38 +0300 |
commit | 6df3dd9d5ed6c16d60f560c906dded888d845953 (patch) | |
tree | 36ca3c818f8c52993db78417cb9fbb293cdb2f9f /spec/requests | |
parent | 49405ac746a8aa2a4854d14e4a8cb6539535b1a5 (diff) | |
parent | cf6a35f09a3f38b124bd0e6013950f21b5bb1851 (diff) |
Merge branch 'post-merge-improve-of-ci-permissions' into 'master'
Post-merge improve of CI permissions
Improves code from !6409
See merge request !6432
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/git_http_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/requests/git_http_spec.rb b/spec/requests/git_http_spec.rb index e3922bec689..74516686921 100644 --- a/spec/requests/git_http_spec.rb +++ b/spec/requests/git_http_spec.rb @@ -335,7 +335,7 @@ describe 'Git HTTP requests', lib: true do project.team << [user, :reporter] end - shared_examples 'can download code only from own projects' do + shared_examples 'can download code only' do it 'downloads get status 200' do clone_get "#{project.path_with_namespace}.git", user: 'gitlab-ci-token', password: build.token @@ -353,7 +353,7 @@ describe 'Git HTTP requests', lib: true do context 'administrator' do let(:user) { create(:admin) } - it_behaves_like 'can download code only from own projects' + it_behaves_like 'can download code only' it 'downloads from other project get status 403' do clone_get "#{other_project.path_with_namespace}.git", user: 'gitlab-ci-token', password: build.token @@ -365,7 +365,7 @@ describe 'Git HTTP requests', lib: true do context 'regular user' do let(:user) { create(:user) } - it_behaves_like 'can download code only from own projects' + it_behaves_like 'can download code only' it 'downloads from other project get status 404' do clone_get "#{other_project.path_with_namespace}.git", user: 'gitlab-ci-token', password: build.token |