Commit ce9e35c2 authored by Sebastian Ziebell's avatar Sebastian Ziebell

API: Fixes tests for changed hook deletion

parent 4a60c377
...@@ -433,19 +433,14 @@ describe Gitlab::API do ...@@ -433,19 +433,14 @@ describe Gitlab::API do
end end
it "should return success when deleting hook" do 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 response.status.should == 200
end end
it "should return success when deleting non existent hook" do 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 response.status.should == 200
end 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 end
describe "GET /projects/:id/repository/tags" do 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