summaryrefslogtreecommitdiff
path: root/spec/helpers/gitlab_markdown_helper_spec.rb
diff options
context:
space:
mode:
authorVinnie Okada <vokada@mrvinn.com>2014-10-16 00:00:17 -0500
committerVinnie Okada <vokada@mrvinn.com>2014-10-16 00:03:10 -0500
commit786045ab81887e132a902190abb62b9747420c17 (patch)
treea483724c3687533417bb7dfe20446de1f1bb204f /spec/helpers/gitlab_markdown_helper_spec.rb
parenta0a826ebdcb783c660dd40d8cb217db28a9d4998 (diff)
downloadgitlab-ce-786045ab81887e132a902190abb62b9747420c17.tar.gz
Fix Rspec error when using non-default port
Prevent test failures when GitLab is configured to use a port other than 80.
Diffstat (limited to 'spec/helpers/gitlab_markdown_helper_spec.rb')
-rw-r--r--spec/helpers/gitlab_markdown_helper_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/helpers/gitlab_markdown_helper_spec.rb b/spec/helpers/gitlab_markdown_helper_spec.rb
index 61751a82369..e933b0842af 100644
--- a/spec/helpers/gitlab_markdown_helper_spec.rb
+++ b/spec/helpers/gitlab_markdown_helper_spec.rb
@@ -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