diff options
author | Vinnie Okada <vokada@mrvinn.com> | 2014-10-05 10:46:52 -0500 |
---|---|---|
committer | Vinnie Okada <vokada@mrvinn.com> | 2014-10-05 10:46:52 -0500 |
commit | 8dce0cd215b657d11b3e183e361fc86ae9314ecd (patch) | |
tree | f9ea93faef6359bd9eb5ee496cfe5ce0968fd81f /spec/helpers/gitlab_markdown_helper_spec.rb | |
parent | a9cd3bfaeefcdc9eee594aeca062bb9f0663aaf1 (diff) | |
download | gitlab-ce-8dce0cd215b657d11b3e183e361fc86ae9314ecd.tar.gz |
Fix cross-project reference test
Test for the correct link text in cross-project references.
Diffstat (limited to 'spec/helpers/gitlab_markdown_helper_spec.rb')
-rw-r--r-- | spec/helpers/gitlab_markdown_helper_spec.rb | 4 |
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 |