Commit 56b3223945637d25394b001c880626f9a4a5b9e0
1 parent
9544f903
Exists in
master
and in
4 other branches
Fixes test that checks status code of hook creation
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
spec/requests/api/projects_spec.rb
| ... | ... | @@ -288,7 +288,7 @@ describe Gitlab::API do |
| 288 | 288 | post api("/projects/#{project.id}/hooks", user), |
| 289 | 289 | "url" => "http://example.com" |
| 290 | 290 | }.to change {project.hooks.count}.by(1) |
| 291 | - response.status.should == 200 | |
| 291 | + response.status.should == 201 | |
| 292 | 292 | end |
| 293 | 293 | end |
| 294 | 294 | ... | ... |