Commit 04da04ff64dc1d6277148144530fa8a8b86f39b9
1 parent
03441769
Exists in
master
and in
4 other branches
fix api delete hook test
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
spec/requests/api/projects_spec.rb
@@ -485,9 +485,9 @@ describe Gitlab::API do | @@ -485,9 +485,9 @@ describe Gitlab::API do | ||
485 | response.status.should == 200 | 485 | response.status.should == 200 |
486 | end | 486 | end |
487 | 487 | ||
488 | - it "should return a 400 error if hook id not given" do | 488 | + it "should return a 405 error if hook id not given" do |
489 | delete api("/projects/#{project.id}/hooks", user) | 489 | delete api("/projects/#{project.id}/hooks", user) |
490 | - response.status.should == 400 | 490 | + response.status.should == 405 |
491 | end | 491 | end |
492 | end | 492 | end |
493 | 493 |