diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-12-25 10:36:25 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-12-31 08:35:14 +0300 |
commit | dc8a8c7d998e2c1f78fcf60f8dc45b572f62abe8 (patch) | |
tree | 6ea5a747af393d7470ec197f09e07301251e30d4 /spec/requests | |
parent | 6a2decf5454922441606fce1560389acbbd9eff1 (diff) |
Add delete method in Release API
Introduce DELETE endpoint in Release API
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/releases_spec.rb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/spec/requests/api/releases_spec.rb b/spec/requests/api/releases_spec.rb new file mode 100644 index 00000000000..7bdbe2ac06f --- /dev/null +++ b/spec/requests/api/releases_spec.rb @@ -0,0 +1,35 @@ +require 'spec_helper' + +describe API::Releases do + let(:user) { create(:user) } + let(:guest) { create(:user).tap { |u| project.add_guest(u) } } + let(:project) { create(:project, :repository, creator: user, path: 'my.project') } + let(:tag_name) { project.repository.find_tag('v1.1.0').name } + + let(:project_id) { project.id } + let(:current_user) { nil } + + before do + project.add_maintainer(user) + end + + describe 'GET /projects/:id/releases' do + # TODO: + end + + describe 'GET /projects/:id/releases/:tag_name' do + # TODO: + end + + describe 'POST /projects/:id/releases' do + # TODO: + end + + describe 'PUT /projects/:id/releases/:tag_name' do + # TODO: + end + + describe 'DELETE /projects/:id/releases/:tag_name' do + # TODO: + end +end |