Fix cross-project reference test
Test for the correct link text in cross-project references.
This commit is contained in:
parent
a9cd3bfaee
commit
8dce0cd215
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue