Commit 90c2cd1ee6c6fd018af0fb0dd79e0fb361000668
1 parent
8e6a7a17
Exists in
master
and in
4 other branches
Fix GFM specs for ids in markdown headings
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
spec/helpers/gitlab_flavored_markdown_spec.rb
@@ -202,7 +202,7 @@ describe ApplicationHelper do | @@ -202,7 +202,7 @@ describe ApplicationHelper do | ||
202 | end | 202 | end |
203 | 203 | ||
204 | it "should handle references in headers" do | 204 | it "should handle references in headers" do |
205 | - 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" | 205 | + 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" |
206 | end | 206 | end |
207 | 207 | ||
208 | it "should handle references in lists" do | 208 | it "should handle references in lists" do |