API: Fixes tests for changed hook deletion

This commit is contained in:
Sebastian Ziebell 2013-02-21 21:04:16 +01:00
parent 4a60c377b8
commit ce9e35c295

View file

@ -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