diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-11-07 02:47:05 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-11-07 02:47:05 +0900 |
commit | afef38533727cf32a7be324243a25b4db5eb5498 (patch) | |
tree | cfdd2c96bd0c1a7ee1fd85f0b63fd2edf0d1fe3f /spec/requests | |
parent | cb5e35d562a1bf0737c1ad3316c3723775fada01 (diff) | |
download | gitlab-ce-afef38533727cf32a7be324243a25b4db5eb5498.tar.gz |
Add doc. Fix spec. Add erase_build in protected_ref rule
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/jobs_spec.rb | 2 | ||||
-rw-r--r-- | spec/requests/api/v3/builds_spec.rb | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/spec/requests/api/jobs_spec.rb b/spec/requests/api/jobs_spec.rb index 3b7b9c889e7..8196046f6ab 100644 --- a/spec/requests/api/jobs_spec.rb +++ b/spec/requests/api/jobs_spec.rb @@ -491,6 +491,8 @@ describe API::Jobs do describe 'POST /projects/:id/jobs/:job_id/erase' do before do + project.add_master(user) + post api("/projects/#{project.id}/jobs/#{job.id}/erase", user) end diff --git a/spec/requests/api/v3/builds_spec.rb b/spec/requests/api/v3/builds_spec.rb index 3f58b7ef384..a73bb456b52 100644 --- a/spec/requests/api/v3/builds_spec.rb +++ b/spec/requests/api/v3/builds_spec.rb @@ -408,6 +408,8 @@ describe API::V3::Builds do describe 'POST /projects/:id/builds/:build_id/erase' do before do + project.add_master(user) + post v3_api("/projects/#{project.id}/builds/#{build.id}/erase", user) end |