Commit 786045ab authored by Vinnie Okada's avatar Vinnie Okada

Fix Rspec error when using non-default port

Prevent test failures when GitLab is configured to use a port other than
80.
parent a0a826eb
......@@ -594,7 +594,7 @@ describe GitlabMarkdownHelper do
end
it "should generate absolute urls for emoji" do
markdown(":smile:").should include("src=\"http://localhost/assets/emoji/smile.png")
markdown(':smile:').should match(%r{src="http://localhost(:\d+)?/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