Commit dddf6eab2dc01dd2ac685f142a61824523fea50b

Authored by Matt Humphrey
1 parent 33c51327

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

Showing 1 changed file with 2 additions and 3 deletions   Show diff stats
spec/requests/api/projects_spec.rb
@@ -261,7 +261,7 @@ describe Gitlab::API do @@ -261,7 +261,7 @@ describe Gitlab::API do
261 it "should add hook to project" do 261 it "should add hook to project" do
262 expect { 262 expect {
263 post api("/projects/#{project.id}/hooks", user), 263 post api("/projects/#{project.id}/hooks", user),
264 - "url" => "http://example.com" 264 + url: "http://example.com"
265 }.to change {project.hooks.count}.by(1) 265 }.to change {project.hooks.count}.by(1)
266 end 266 end
267 end 267 end
@@ -278,8 +278,7 @@ describe Gitlab::API do @@ -278,8 +278,7 @@ describe Gitlab::API do
278 describe "DELETE /projects/:id/hooks/:hook_id" do 278 describe "DELETE /projects/:id/hooks/:hook_id" do
279 it "should delete hook from project" do 279 it "should delete hook from project" do
280 expect { 280 expect {
281 - delete api("/projects/#{project.id}/hooks/#{hook.id}", user),  
282 - hook_id: hook.id 281 + delete api("/projects/#{project.id}/hooks/#{hook.id}", user)
283 }.to change {project.hooks.count}.by(-1) 282 }.to change {project.hooks.count}.by(-1)
284 end 283 end
285 end 284 end