mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 13:46:28 +02:00
Ignore locales without :general_lang_name key (#18110).
git-svn-id: http://svn.redmine.org/redmine/trunk@13450 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -198,6 +198,11 @@ class Redmine::I18nTest < ActiveSupport::TestCase
|
||||
assert_include [ja, "ja"], options
|
||||
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)
|
||||
end
|
||||
|
||||
def test_locales_validness
|
||||
lang_files_count = Dir["#{Rails.root}/config/locales/*.yml"].size
|
||||
assert_equal lang_files_count, valid_languages.size
|
||||
|
||||
Reference in New Issue
Block a user