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:
parent
786045ab81
commit
f2764e566e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue