diff options
author | Marius Bobin <mbobin@gitlab.com> | 2019-08-16 11:10:19 +0300 |
---|---|---|
committer | Marius Bobin <mbobin@gitlab.com> | 2019-08-22 11:39:51 +0300 |
commit | 612e2d63b3581b956b0aabf7984afc48edf56333 (patch) | |
tree | d99231964372270234be2ffe74fff053ddd98fe8 | |
parent | fa65a164a4919411ae8d975803b5a32be796617c (diff) | |
download | gitlab-ce-612e2d63b3581b956b0aabf7984afc48edf56333.tar.gz |
Update example names for API pipeline specs
Refer non logged in users as guests and logged on users
as non members
-rw-r--r-- | spec/requests/api/pipelines_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/requests/api/pipelines_spec.rb b/spec/requests/api/pipelines_spec.rb index bc6e77eecd1..6e97029de80 100644 --- a/spec/requests/api/pipelines_spec.rb +++ b/spec/requests/api/pipelines_spec.rb @@ -33,14 +33,14 @@ describe API::Pipelines do context 'when project has public visibility' do let(:project) { create(:project, :repository, :public, creator: user, public_builds: true) } - it 'does return project pipelines for guests' do + it 'does return project pipelines for non members' do get api("/projects/#{project.id}/pipelines", non_member) expect(response).to have_gitlab_http_status(200) expect(json_response).to be_an Array end - it 'does return project pipelines for non logged in users' do + it 'does return project pipelines for guests' do get api("/projects/#{project.id}/pipelines") expect(response).to have_gitlab_http_status(200) @@ -306,14 +306,14 @@ describe API::Pipelines do context 'when project has public_builds set to false' do let(:project) { create(:project, :repository, :public, creator: user, public_builds: false) } - it 'does not return project pipelines for guests' do + it 'does not return project pipelines for non members' do get api("/projects/#{project.id}/pipelines", non_member) expect(response).to have_gitlab_http_status(403) expect(json_response).not_to be_an Array end - it 'does not return project pipelines for non logged in users' do + it 'does not return project pipelines for guests' do get api("/projects/#{project.id}/pipelines") expect(response).to have_gitlab_http_status(403) |