Commit dddf6eab2dc01dd2ac685f142a61824523fea50b
1 parent
33c51327
Exists in
master
and in
4 other branches
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 | 261 | it "should add hook to project" do |
262 | 262 | expect { |
263 | 263 | post api("/projects/#{project.id}/hooks", user), |
264 | - "url" => "http://example.com" | |
264 | + url: "http://example.com" | |
265 | 265 | }.to change {project.hooks.count}.by(1) |
266 | 266 | end |
267 | 267 | end |
... | ... | @@ -278,8 +278,7 @@ describe Gitlab::API do |
278 | 278 | describe "DELETE /projects/:id/hooks/:hook_id" do |
279 | 279 | it "should delete hook from project" do |
280 | 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 | 282 | }.to change {project.hooks.count}.by(-1) |
284 | 283 | end |
285 | 284 | end | ... | ... |