fix api delete hook test

This commit is contained in:
Dmitriy Zaporozhets 2013-05-07 19:46:35 +03:00
parent 03441769df
commit 04da04ff64
1 changed files with 2 additions and 2 deletions

View File

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