summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorArtem Sidorenko <artem@posteo.de>2016-05-03 17:33:43 +0200
committerArtem Sidorenko <artem@posteo.de>2016-05-13 22:42:07 +0200
commite5c97101478829fe8200557afd02bde92c3eb4e4 (patch)
treeda0fbf9b2c2020e0b39336663557b3645ea50926 /spec
parent5e130c3e39febcd577e61ebd30bd231827d41f2c (diff)
downloadgitlab-ce-e5c97101478829fe8200557afd02bde92c3eb4e4.tar.gz
Use the relative url prefix for links in Wiki
Diffstat (limited to 'spec')
-rw-r--r--spec/models/project_wiki_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/models/project_wiki_spec.rb b/spec/models/project_wiki_spec.rb
index 532e3f013fd..91ebb612baa 100644
--- a/spec/models/project_wiki_spec.rb
+++ b/spec/models/project_wiki_spec.rb
@@ -38,7 +38,8 @@ describe ProjectWiki, models: true do
describe "#wiki_base_path" do
it "returns the wiki base path" do
- wiki_base_path = "/#{project.path_with_namespace}/wikis"
+ wiki_base_path = "#{Gitlab.config.gitlab.relative_url_root}/#{project.path_with_namespace}/wikis"
+
expect(subject.wiki_base_path).to eq(wiki_base_path)
end
end