Make languages in Highlighted code button in toolbar customizable (#32528).

Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19429 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-01-14 14:38:48 +00:00
parent 7f60d56201
commit 6611f5bf5d
8 changed files with 29 additions and 4 deletions

View File

@@ -110,4 +110,11 @@ class UserPreferenceTest < ActiveSupport::TestCase
up.save!
assert_equal ['documents'], up.my_page_settings.keys
end
def test_toolbar_language_options_setter_should_remove_except_supported_languages
up = User.find(2).pref
# bar is not a supported language
up.toolbar_language_options = 'ruby,cpp,bar,c'
assert_equal 'ruby,cpp,c', up.toolbar_language_options
end
end