summaryrefslogtreecommitdiff
path: root/spec/helpers
diff options
context:
space:
mode:
authorCiro Santillli <ciro.santilli@gmail.com>2014-02-20 15:09:30 +0100
committerCiro Santillli <ciro.santilli@gmail.com>2014-02-23 09:47:52 +0100
commit90bdcac6b17c0da762959dcfae3521f3be4606b7 (patch)
treeb4b561f70f4ae53a84baf7f086c2221a2249aaa7 /spec/helpers
parent499a118590e875596974e522aecf61bdc05fe0f2 (diff)
downloadgitlab-ce-90bdcac6b17c0da762959dcfae3521f3be4606b7.tar.gz
Blob and tree gfm links to anchors work.
Fixes #6046
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/gitlab_markdown_helper_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/helpers/gitlab_markdown_helper_spec.rb b/spec/helpers/gitlab_markdown_helper_spec.rb
index a445c18f009..7e98b7944f1 100644
--- a/spec/helpers/gitlab_markdown_helper_spec.rb
+++ b/spec/helpers/gitlab_markdown_helper_spec.rb
@@ -454,7 +454,7 @@ describe GitlabMarkdownHelper do
it "should handle relative urls in reference links for a directory in master" do
actual = "[GitLab API doc directory][GitLab readmes]\n [GitLab readmes]: doc/api/\n"
- expected = "<p><a href=\"/#{project.path_with_namespace}/tree/master/doc/api/\">GitLab API doc directory</a></p>\n"
+ expected = "<p><a href=\"/#{project.path_with_namespace}/tree/master/doc/api\">GitLab API doc directory</a></p>\n"
markdown(actual).should match(expected)
end