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.
This commit is contained in:
Vinnie Okada 2014-10-18 00:04:21 -05:00
parent 786045ab81
commit f2764e566e
1 changed files with 3 additions and 1 deletions

View File

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