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