Remove DELETE API for Milestones
This commit is contained in:
parent
b0a901fe01
commit
0f1ca8b3e7
2 changed files with 0 additions and 20 deletions
|
@ -76,18 +76,6 @@ module Gitlab
|
|||
error!({'message' => '404 Not found'}, 404)
|
||||
end
|
||||
end
|
||||
|
||||
# Delete a project milestone
|
||||
#
|
||||
# Parameters:
|
||||
# id (required) - The ID or code name of a project
|
||||
# milestone_id (required) - The ID of a project milestone
|
||||
# Example Request:
|
||||
# DELETE /projects/:id/milestones/:milestone_id
|
||||
delete ":id/milestones/:milestone_id" do
|
||||
@milestone = user_project.milestones.find(params[:milestone_id])
|
||||
@milestone.destroy
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -42,12 +42,4 @@ describe Gitlab::API do
|
|||
json_response['title'].should == 'updated title'
|
||||
end
|
||||
end
|
||||
|
||||
describe "DELETE /projects/:id/milestones/:milestone_id" do
|
||||
it "should delete a project milestone" do
|
||||
expect {
|
||||
delete "#{api_prefix}/projects/#{project.code}/milestones/#{milestone.id}?private_token=#{user.private_token}"
|
||||
}.to change { Milestone.count }.by(-1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue