Fixes test that checks status code of hook creation

This commit is contained in:
Sebastian Ziebell 2013-02-08 18:19:59 +01:00
parent 9544f90389
commit 56b3223945

View file

@ -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