diff options
author | Artem Sidorenko <artem@posteo.de> | 2016-05-03 17:33:43 +0200 |
---|---|---|
committer | Artem Sidorenko <artem@posteo.de> | 2016-05-09 11:50:23 +0200 |
commit | 14b36f91d9d803850f59fe49961d6d6a9d540aab (patch) | |
tree | e2071f037b19010438c8d758f87ac355096d4fe7 /spec/lib/gitlab/url_builder_spec.rb | |
parent | 0a103e983cccc9bb9a7a28fb4eacff8d624010f8 (diff) | |
download | gitlab-ce-14b36f91d9d803850f59fe49961d6d6a9d540aab.tar.gz |
Use the proper GitLab URL for links in Wiki
Diffstat (limited to 'spec/lib/gitlab/url_builder_spec.rb')
-rw-r--r-- | spec/lib/gitlab/url_builder_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/url_builder_spec.rb b/spec/lib/gitlab/url_builder_spec.rb index bf11472407a..c8d3bc01395 100644 --- a/spec/lib/gitlab/url_builder_spec.rb +++ b/spec/lib/gitlab/url_builder_spec.rb @@ -112,7 +112,7 @@ describe Gitlab::UrlBuilder, lib: true do wiki_page = build(:wiki_page) url = described_class.build(wiki_page) - expect(url).to eq "#{Gitlab.config.gitlab.url}#{wiki_page.wiki.wiki_base_path}/#{wiki_page.slug}" + expect(url).to eq "#{Gitlab.config.gitlab.url}/#{wiki_page.wiki.project.path_with_namespace}/wikis/#{wiki_page.slug}" end end end |