GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 8. März, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit 69e5e260 authored by Stan Hu's avatar Stan Hu

Add spec for cloning Wiki over HTTP

parent 64a270a6
......@@ -50,6 +50,22 @@
context "when the Wiki for a project exists" do
before do
@wiki =
env["PATH_INFO"] = "#{@wiki.repository.path_with_namespace}.git/info/refs"
project.update_attribute(:visibility_level, Project::PUBLIC)
it "responds with the right project" do
response =
json_body = ActiveSupport::JSON.decode(response[2][0])
expect(response.first).to eq(200)
expect(json_body['RepoPath']).to include(@wiki.repository.path_with_namespace)
context "when the project exists" do
before do
env["PATH_INFO"] = project.path_with_namespace + ".git"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment