Commit 8dce0cd2 authored by Vinnie Okada's avatar Vinnie Okada

Fix cross-project reference test

Test for the correct link text in cross-project references.
parent a9cd3bfa
......@@ -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
......
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