@@ -379,19 +379,19 @@ describe GitlabMarkdownHelper do
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"
markdown("look at http://example.tld/#!#{merge_request.iid}").should=="<p>look at <a href=\"http://example.tld/#!#{merge_request.iid}\">http://example.tld/#!#{merge_request.iid}</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=\"#{project_merge_request_url(project,merge_request)}\" 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"
markdown("why not [inspect !#{merge_request.iid}](http://example.tld/#!#{merge_request.iid})").should=="<p>why not <a href=\"http://example.tld/#!#{merge_request.iid}\">inspect </a><a href=\"#{project_merge_request_url(project,merge_request)}\" class=\"gfm gfm-merge_request \" title=\"Merge Request: #{merge_request.title}\">!#{merge_request.iid}</a><a href=\"http://example.tld/#!#{merge_request.iid}\"></a></p>\n"
end
it"should leave ref-like src of images untouched"do