diff options
author | Artem Sidorenko <artem@posteo.de> | 2016-05-03 17:33:43 +0200 |
---|---|---|
committer | Artem Sidorenko <artem@posteo.de> | 2016-05-13 22:42:07 +0200 |
commit | e5c97101478829fe8200557afd02bde92c3eb4e4 (patch) | |
tree | da0fbf9b2c2020e0b39336663557b3645ea50926 /spec | |
parent | 5e130c3e39febcd577e61ebd30bd231827d41f2c (diff) | |
download | gitlab-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.rb | 3 |
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 |