Fix cross-project reference test

Test for the correct link text in cross-project references.
This commit is contained in:
Vinnie Okada 2014-10-05 10:46:52 -05:00
parent a9cd3bfaee
commit 8dce0cd215

View file

@ -203,7 +203,9 @@ describe GitlabMarkdownHelper do
end end
it 'should link using a valid id' do it 'should link using a valid id' do
gfm(actual).should match(expected) gfm(actual).should match(
/#{expected}.*#{Regexp.escape(full_reference)}/
)
end end
it 'should link with adjacent text' do it 'should link with adjacent text' do