Adds route for code highlighting languages page (#39111, #40137).

git-svn-id: https://svn.redmine.org/redmine/trunk@22732 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2024-02-25 21:41:14 +00:00
parent 0d9700268a
commit eef8f625c8
77 changed files with 87 additions and 73 deletions

View File

@@ -81,4 +81,11 @@ class HelpControllerTest < Redmine::ControllerTest
assert_match "Wiki Syntax Quick Reference (CommonMark Markdown (GitHub Flavored))", response.body
end
def test_get_help_code_highlighting
get :show_code_highlighting
assert_response :success
assert_select 'h1', :text => "List of languages supported by Redmine code highlighter"
end
end

View File

@@ -23,5 +23,7 @@ class RoutingHelpTest < Redmine::RoutingTest
def test_help
should_route 'GET /help/wiki_syntax' => 'help#show_wiki_syntax'
should_route 'GET /help/wiki_syntax/detailed' => 'help#show_wiki_syntax', :type => "detailed"
should_route 'GET /help/code_highlighting' => 'help#show_code_highlighting'
end
end