diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-12-25 16:36:25 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-12-31 14:35:14 +0900 |
commit | dc8a8c7d998e2c1f78fcf60f8dc45b572f62abe8 (patch) | |
tree | 6ea5a747af393d7470ec197f09e07301251e30d4 /spec | |
parent | 6a2decf5454922441606fce1560389acbbd9eff1 (diff) | |
download | gitlab-ce-dc8a8c7d998e2c1f78fcf60f8dc45b572f62abe8.tar.gz |
Add delete method in Release API
Introduce DELETE endpoint in Release API
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/api/releases_spec.rb | 35 | ||||
-rw-r--r-- | spec/services/delete_release_service_spec.rb | 1 |
2 files changed, 36 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 diff --git a/spec/services/delete_release_service_spec.rb b/spec/services/delete_release_service_spec.rb new file mode 100644 index 00000000000..faefdb342bb --- /dev/null +++ b/spec/services/delete_release_service_spec.rb @@ -0,0 +1 @@ +#TODO:
\ No newline at end of file |