mirror of
https://github.com/redmine/redmine.git
synced 2025-11-10 15:26:03 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user