@@ -340,6 +342,18 @@ describe GitlabMarkdownHelper do
markdown("\nDon't use `$#{snippet.id}` here.\n").should=="<p>Don't use <code>$#{snippet.id}</code> here.</p>\n"
end
it"should leave ref-like autolinks untouched"do
markdown("look at http://example.tld/#!#{merge_request.id}").should=="<p>look at <a href=\"http://example.tld/#!#{merge_request.id}\">http://example.tld/#!#{merge_request.id}</a></p>\n"
end
it"should leave ref-like href of 'manual' links untouched"do
markdown("why not [inspect !#{merge_request.id}](http://example.tld/#!#{merge_request.id})").should=="<p>why not <a href=\"http://example.tld/#!#{merge_request.id}\">inspect </a><a href=\"http://test.host/project60/merge_requests/#{merge_request.id}\" class=\"gfm gfm-merge_request \" title=\"Merge Request: #{merge_request.title}\">!#{merge_request.id}</a><a href=\"http://example.tld/#!#{merge_request.id}\"></a></p>\n"
end
it"should leave ref-like src of images untouched"do