diff options
author | Ciro Santillli <ciro.santilli@gmail.com> | 2014-02-20 15:09:30 +0100 |
---|---|---|
committer | Ciro Santillli <ciro.santilli@gmail.com> | 2014-02-23 09:47:52 +0100 |
commit | 90bdcac6b17c0da762959dcfae3521f3be4606b7 (patch) | |
tree | b4b561f70f4ae53a84baf7f086c2221a2249aaa7 /spec/helpers | |
parent | 499a118590e875596974e522aecf61bdc05fe0f2 (diff) | |
download | gitlab-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.rb | 2 |
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 |