summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/helpers/gitlab_markdown_helper_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/helpers/gitlab_markdown_helper_spec.rb b/spec/helpers/gitlab_markdown_helper_spec.rb
index da246ff1e0d..73b3d91e96e 100644
--- a/spec/helpers/gitlab_markdown_helper_spec.rb
+++ b/spec/helpers/gitlab_markdown_helper_spec.rb
@@ -203,7 +203,9 @@ describe GitlabMarkdownHelper do
end
it 'should link using a valid id' do
- gfm(actual).should match(expected)
+ gfm(actual).should match(
+ /#{expected}.*#{Regexp.escape(full_reference)}/
+ )
end
it 'should link with adjacent text' do