diff options
author | Rémy Coutable <remy@rymai.me> | 2017-07-27 12:15:57 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-07-28 17:33:30 +0300 |
commit | 60797a42b419841e14f50f85bf8daa2a115a72f9 (patch) | |
tree | 930ea47354df7c2e415cf77dbb727967da97296a /spec/models/project_wiki_spec.rb | |
parent | 48c51e207e4cba8a69e4ca65cba1e169d384cefa (diff) |
Ensure Gitlab::Application.routes.default_url_options are set correctly in Capybara + :js specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/models/project_wiki_spec.rb')
-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 7fcbeb459e0..c6ceb092810 100644 --- a/spec/models/project_wiki_spec.rb +++ b/spec/models/project_wiki_spec.rb @@ -21,7 +21,7 @@ describe ProjectWiki do describe '#web_url' do it 'returns the full web URL to the wiki' do - expect(subject.web_url).to match("https?://[^\/]+/#{project.path_with_namespace}/wikis/home") + expect(subject.web_url).to eq("#{Gitlab.config.gitlab.url}/#{project.path_with_namespace}/wikis/home") end end |