Commit ce9e35c295d4df4b6a093ffef7ce0ad3f5e1a24e
1 parent
4a60c377
Exists in
master
and in
4 other branches
API: Fixes tests for changed hook deletion
Showing
1 changed file
with
2 additions
and
7 deletions
Show diff stats
spec/requests/api/projects_spec.rb
| ... | ... | @@ -433,19 +433,14 @@ describe Gitlab::API do |
| 433 | 433 | end |
| 434 | 434 | |
| 435 | 435 | it "should return success when deleting hook" do |
| 436 | - delete api("/projects/#{project.id}/hooks", user), hook_id: hook.id | |
| 436 | + delete api("/projects/#{project.id}/hooks/#{hook.id}", user) | |
| 437 | 437 | response.status.should == 200 |
| 438 | 438 | end |
| 439 | 439 | |
| 440 | 440 | it "should return success when deleting non existent hook" do |
| 441 | - delete api("/projects/#{project.id}/hooks", user), hook_id: 42 | |
| 441 | + delete api("/projects/#{project.id}/hooks/42", user) | |
| 442 | 442 | response.status.should == 200 |
| 443 | 443 | end |
| 444 | - | |
| 445 | - it "should return a 400 error if hook id not given" do | |
| 446 | - delete api("/projects/#{project.id}/hooks", user) | |
| 447 | - response.status.should == 400 | |
| 448 | - end | |
| 449 | 444 | end |
| 450 | 445 | |
| 451 | 446 | describe "GET /projects/:id/repository/tags" do | ... | ... |