Commit 56b3223945637d25394b001c880626f9a4a5b9e0

Authored by Sebastian Ziebell
1 parent 9544f903

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,7 +288,7 @@ describe Gitlab::API do
288 post api("/projects/#{project.id}/hooks", user), 288 post api("/projects/#{project.id}/hooks", user),
289 "url" => "http://example.com" 289 "url" => "http://example.com"
290 }.to change {project.hooks.count}.by(1) 290 }.to change {project.hooks.count}.by(1)
291 - response.status.should == 200 291 + response.status.should == 201
292 end 292 end
293 end 293 end
294 294