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

This commit is contained in:
Matt Humphrey 2013-02-20 11:45:54 +00:00
parent 33c513274d
commit dddf6eab2d

View file

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