Skip to content
Snippets Groups Projects
Commit ce9e35c2 authored by Sebastian Ziebell's avatar Sebastian Ziebell
Browse files

API: Fixes tests for changed hook deletion

parent 4a60c377
No related branches found
No related tags found
1 merge request!2835Fix API return codes
Loading
Loading
@@ -433,19 +433,14 @@ describe Gitlab::API do
end
 
it "should return success when deleting hook" do
delete api("/projects/#{project.id}/hooks", user), hook_id: hook.id
delete api("/projects/#{project.id}/hooks/#{hook.id}", user)
response.status.should == 200
end
 
it "should return success when deleting non existent hook" do
delete api("/projects/#{project.id}/hooks", user), hook_id: 42
delete api("/projects/#{project.id}/hooks/42", user)
response.status.should == 200
end
it "should return a 400 error if hook id not given" do
delete api("/projects/#{project.id}/hooks", user)
response.status.should == 400
end
end
 
describe "GET /projects/:id/repository/tags" do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment