summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Humphrey <matt@tomatto.co.uk>2013-02-20 11:45:54 +0000
committerMatt Humphrey <matt@tomatto.co.uk>2013-02-20 11:45:54 +0000
commitdddf6eab2dc01dd2ac685f142a61824523fea50b (patch)
treef3bb8ab3954e1361a978633becba3503725c8b90
parent33c513274d2201787d592850e60a018b777e0c43 (diff)
downloadgitlab-ce-dddf6eab2dc01dd2ac685f142a61824523fea50b.tar.gz
Removed unnecessary paramter hash. Also tidied up hash format in hook creation spec
-rw-r--r--spec/requests/api/projects_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/requests/api/projects_spec.rb b/spec/requests/api/projects_spec.rb
index 07f118fe1d3..d410885bd22 100644
--- a/spec/requests/api/projects_spec.rb
+++ b/spec/requests/api/projects_spec.rb
@@ -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