BigW Consortium Gitlab

Commit ce9e35c2 by Sebastian Ziebell

API: Fixes tests for changed hook deletion

parent 4a60c377
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment