Commit 56b32239 authored by Sebastian Ziebell's avatar Sebastian Ziebell

Fixes test that checks status code of hook creation

parent 9544f903
...@@ -288,7 +288,7 @@ describe Gitlab::API do ...@@ -288,7 +288,7 @@ describe Gitlab::API do
post api("/projects/#{project.id}/hooks", user), post api("/projects/#{project.id}/hooks", user),
"url" => "http://example.com" "url" => "http://example.com"
}.to change {project.hooks.count}.by(1) }.to change {project.hooks.count}.by(1)
response.status.should == 200 response.status.should == 201
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment