summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-08-22 13:26:09 -0400
committerRobert Speicher <rspeicher@gmail.com>2012-08-22 13:26:09 -0400
commitb838440f15fbc56d0504162fcff376cacf9c8186 (patch)
treef92a9daf0d87473d438461ff6e79cbf8bc8e074e /spec
parent0f1ca8b3e7454a6fa788f8e57607b95f3195e145 (diff)
downloadgitlab-ce-b838440f15fbc56d0504162fcff376cacf9c8186.tar.gz
Deprecate the DELETE method for Issues API
Now returns HTTP Status 405 - http://httpstatus.es/405 Closes #1245 Closes #1264
Diffstat (limited to 'spec')
-rw-r--r--spec/api/issues_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/api/issues_spec.rb b/spec/api/issues_spec.rb
index f6d8e3792c2..62814307bf6 100644
--- a/spec/api/issues_spec.rb
+++ b/spec/api/issues_spec.rb
@@ -63,9 +63,8 @@ describe Gitlab::API do
describe "DELETE /projects/:id/issues/:issue_id" do
it "should delete a project issue" do
- expect {
- delete "#{api_prefix}/projects/#{project.code}/issues/#{issue.id}?private_token=#{user.private_token}"
- }.to change { Issue.count }.by(-1)
+ delete "#{api_prefix}/projects/#{project.code}/issues/#{issue.id}?private_token=#{user.private_token}"
+ response.status.should == 405
end
end
end