]> source.dussan.org Git - redmine.git/commitdiff
Add test for r17345 (#16313).
authorGo MAEDA <maeda@farend.jp>
Sun, 20 May 2018 23:56:33 +0000 (23:56 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 20 May 2018 23:56:33 +0000 (23:56 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@17346 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/helpers/application_helper_test.rb

index 692c6c6bb42a2e58a5c7c90bbe6a625479d3fbae..09ea4a493f76fd735b23012b753bb46938cf024c 100644 (file)
@@ -694,6 +694,15 @@ RAW
           link_to(@russian_test,
                   "/projects/ecookbook/wiki/Another_page##{russian_eacape}",
                   :class => "wiki-page"),
+      # link to anchor
+      '[[#anchor]]' =>
+          link_to("#anchor",
+                  "#anchor",
+                  :class => "wiki-page"),
+      '[[#anchor|One-section]]' =>
+          link_to("One-section",
+                  "#anchor",
+                  :class => "wiki-page"),
       # page that doesn't exist
       '[[Unknown page]]' =>
           link_to("Unknown page",