Commit dddf6eab authored by Matt Humphrey's avatar Matt Humphrey

Removed unnecessary paramter hash. Also tidied up hash format in hook creation spec

parent 33c51327
......@@ -261,7 +261,7 @@ describe Gitlab::API do
it "should add hook to project" do
expect {
post api("/projects/#{project.id}/hooks", user),
"url" => "http://example.com"
url: "http://example.com"
}.to change {project.hooks.count}.by(1)
end
end
......@@ -278,8 +278,7 @@ describe Gitlab::API do
describe "DELETE /projects/:id/hooks/:hook_id" do
it "should delete hook from project" do
expect {
delete api("/projects/#{project.id}/hooks/#{hook.id}", user),
hook_id: hook.id
delete api("/projects/#{project.id}/hooks/#{hook.id}", user)
}.to change {project.hooks.count}.by(-1)
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