summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2016-04-22 14:04:36 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2016-04-22 14:04:36 +0200
commitb64cbaccbe297c82b5af0dac94b491f86b17ddd3 (patch)
treea81f56126c1f7d4443a0a1980d59fb1d0fbe20ef
parentc161065e781a2c6d7a3b22954259809ffd7c5b26 (diff)
downloadgitlab-ce-b64cbaccbe297c82b5af0dac94b491f86b17ddd3.tar.gz
Remove trivial 'let'
-rw-r--r--spec/requests/git_http_spec.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/spec/requests/git_http_spec.rb b/spec/requests/git_http_spec.rb
index 8b217684911..20c7357cba5 100644
--- a/spec/requests/git_http_spec.rb
+++ b/spec/requests/git_http_spec.rb
@@ -54,7 +54,6 @@ describe 'Git HTTP requests', lib: true do
context "when the project exists" do
let(:path) { "#{project.path_with_namespace}.git" }
- let(:env) { {} }
context "when the project is public" do
before do
@@ -62,13 +61,13 @@ describe 'Git HTTP requests', lib: true do
end
it "downloads get status 200" do
- download(path, env) do |response|
+ download(path, {}) do |response|
expect(response.status).to eq(200)
end
end
it "uploads get status 401" do
- upload(path, env) do |response|
+ upload(path, {}) do |response|
expect(response.status).to eq(401)
end
end
@@ -97,7 +96,7 @@ describe 'Git HTTP requests', lib: true do
it "responds with status 404" do
allow(Gitlab.config.gitlab_shell).to receive(:upload_pack).and_return(false)
- download(path, env) do |response|
+ download(path, {}) do |response|
expect(response.status).to eq(404)
end
end
@@ -111,13 +110,13 @@ describe 'Git HTTP requests', lib: true do
context "when no authentication is provided" do
it "responds with status 401 to downloads" do
- download(path, env) do |response|
+ download(path, {}) do |response|
expect(response.status).to eq(401)
end
end
it "responds with status 401 to uploads" do
- upload(path, env) do |response|
+ upload(path, {}) do |response|
expect(response.status).to eq(401)
end
end