diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-26 11:38:52 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-26 11:38:52 +0000 |
commit | 3fcd683e6bad87ba5df91a17c3a5933519b81320 (patch) | |
tree | 35680397282dfac559756f540723245991c0d04a /test | |
parent | 12890945e527c2803ad5a85ca4afbe1017c34025 (diff) | |
download | redmine-3fcd683e6bad87ba5df91a17c3a5933519b81320.tar.gz redmine-3fcd683e6bad87ba5df91a17c3a5933519b81320.zip |
Force UTF-8 encoding of language names.
git-svn-id: http://svn.redmine.org/redmine/trunk@13807 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/lib/redmine/i18n_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/i18n_test.rb b/test/unit/lib/redmine/i18n_test.rb index a267fd7b9..6684220fb 100644 --- a/test/unit/lib/redmine/i18n_test.rb +++ b/test/unit/lib/redmine/i18n_test.rb @@ -199,6 +199,11 @@ class Redmine::I18nTest < ActiveSupport::TestCase assert_include [ja, "ja"], options end + def test_languages_options_should_return_strings_with_utf8_encoding + strings = languages_options.flatten + assert_equal ["UTF-8"], strings.map(&:encoding).uniq.map(&:name).sort + end + def test_languages_options_should_ignore_locales_without_general_lang_name_key stubs(:valid_languages).returns([:en, :foo]) assert_equal [["English", "en"]], languages_options(:cache => false) |