Commit 04da04ff authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

fix api delete hook test

parent 03441769
......@@ -485,9 +485,9 @@ describe Gitlab::API do
response.status.should == 200
end
it "should return a 400 error if hook id not given" do
it "should return a 405 error if hook id not given" do
delete api("/projects/#{project.id}/hooks", user)
response.status.should == 400
response.status.should == 405
end
end
......
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