Skip to content
Snippets Groups Projects
Commit b64cbacc authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Remove trivial 'let'

parent c161065e
No related branches found
No related tags found
2 merge requests!450CE upstream,!446Git HTTP Controller: EE
......@@ -54,7 +54,6 @@
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 @@
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 @@
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 @@
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment