summaryrefslogtreecommitdiff
path: root/spec/helpers
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-08-06 02:31:16 +0200
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-08-06 02:31:16 +0200
commit90c2cd1ee6c6fd018af0fb0dd79e0fb361000668 (patch)
tree15ee9a2b1da71ebef2be2ff9d5aafb25a405d8b2 /spec/helpers
parent8e6a7a172eec57b56f5b460b3e041480dc8a740a (diff)
downloadgitlab-ce-90c2cd1ee6c6fd018af0fb0dd79e0fb361000668.tar.gz
Fix GFM specs for ids in markdown headings
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/gitlab_flavored_markdown_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/helpers/gitlab_flavored_markdown_spec.rb b/spec/helpers/gitlab_flavored_markdown_spec.rb
index aeace00ce50..c1d95b8204c 100644
--- a/spec/helpers/gitlab_flavored_markdown_spec.rb
+++ b/spec/helpers/gitlab_flavored_markdown_spec.rb
@@ -202,7 +202,7 @@ describe ApplicationHelper do
end
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
it "should handle references in lists" do