Commit f2764e56 authored by Vinnie Okada's avatar Vinnie Okada

Use actual GitLab URL for test assertion

Assert the full GitLab root URL, including the port, instead of using a
regexp to tolerate whatever port is returned.
parent 786045ab
......@@ -594,7 +594,9 @@ describe GitlabMarkdownHelper do
end
it "should generate absolute urls for emoji" do
markdown(':smile:').should match(%r{src="http://localhost(:\d+)?/assets/emoji/smile.png})
markdown(':smile:').should(
include(%(src="#{Gitlab.config.gitlab.url}/assets/emoji/smile.png))
)
end
it "should generate absolute urls for emoji if relative url is present" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment