Fix GFM specs for ids in markdown headings
This commit is contained in:
parent
8e6a7a172e
commit
90c2cd1ee6
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ describe ApplicationHelper do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should handle references in headers" do
|
it "should handle references in headers" do
|
||||||
markdown("\n# Working around ##{@issue.id} for now\n## Apply !#{@merge_request.id}").should == "<h1>Working around #{link_to "##{@issue.id}", project_issue_path(@project, @issue), :title => "Issue: #{@issue.title}", :class => "gfm gfm-issue "} for now</h1>\n\n<h2>Apply #{link_to "!#{@merge_request.id}", project_merge_request_path(@project, @merge_request), :title => "Merge Request: #{@merge_request.title}", :class => "gfm gfm-merge_request "}</h2>\n"
|
markdown("\n# Working around ##{@issue.id} for now\n## Apply !#{@merge_request.id}").should == "<h1 id=\"toc_0\">Working around #{link_to "##{@issue.id}", project_issue_path(@project, @issue), :title => "Issue: #{@issue.title}", :class => "gfm gfm-issue "} for now</h1>\n\n<h2 id=\"toc_1\">Apply #{link_to "!#{@merge_request.id}", project_merge_request_path(@project, @merge_request), :title => "Merge Request: #{@merge_request.title}", :class => "gfm gfm-merge_request "}</h2>\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should handle references in lists" do
|
it "should handle references in lists" do
|
||||||
|
|
Loading…
Add table
Reference in a new issue