blob: 7bdbe2ac06f2c77d8aee755b9c881b1fef8208d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
|