Removed unnecessary paramter hash. Also tidied up hash format in hook creation spec
This commit is contained in:
parent
33c513274d
commit
dddf6eab2d
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue