diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-08-22 13:26:09 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-08-22 13:26:09 -0400 |
commit | b838440f15fbc56d0504162fcff376cacf9c8186 (patch) | |
tree | f92a9daf0d87473d438461ff6e79cbf8bc8e074e /spec | |
parent | 0f1ca8b3e7454a6fa788f8e57607b95f3195e145 (diff) | |
download | gitlab-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.rb | 5 |
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 |