diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-07-26 03:20:02 -0700 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-07-26 03:55:19 -0700 |
commit | c4854426654949feef4085fd3026d5862f00aa7c (patch) | |
tree | aa7f9fc2e322032718a745f4ec794053525db228 /spec | |
parent | 96dba2ca17878eda915e13a7a00aad5831e03c36 (diff) | |
download | gitlab-ce-c4854426654949feef4085fd3026d5862f00aa7c.tar.gz |
Fix project wiki web_url spec
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/project_wiki_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/project_wiki_spec.rb b/spec/models/project_wiki_spec.rb index 1f314791479..79ab50c1234 100644 --- a/spec/models/project_wiki_spec.rb +++ b/spec/models/project_wiki_spec.rb @@ -21,7 +21,7 @@ describe ProjectWiki, models: true do describe '#web_url' do it 'returns the full web URL to the wiki' do - expect(subject.web_url).to eq("#{Gitlab.config.gitlab.url}/#{project.path_with_namespace}/wikis/home") + expect(subject.web_url).to match("https?://[^\/]+/#{project.path_with_namespace}/wikis/home") end end |