Fix project wiki web_url spec

This commit is contained in:
Michael Kozono 2017-07-26 03:20:02 -07:00
parent 96dba2ca17
commit c485442665
1 changed files with 1 additions and 1 deletions

View File

@ -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