X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/970e1a99d7dce64f0631e88c5b9f060fb48d75fe..a2a0db9ee2dd0a957ce0274e26c66f135a2e3a31:/test/lib/locale_test.rb?ds=sidebyside diff --git a/test/lib/locale_test.rb b/test/lib/locale_test.rb index 65c7ea398..4d4571160 100644 --- a/test/lib/locale_test.rb +++ b/test/lib/locale_test.rb @@ -92,8 +92,8 @@ class LocaleTest < ActiveSupport::TestCase assert_equal "zh-TW", Locale.available.preferred(Locale.list("zh-Hant-TW", "de")).to_s assert_equal "zh-TW", Locale.available.preferred(Locale.list("zh-TW", "de")).to_s assert_equal "zh-HK", Locale.available.preferred(Locale.list("yue", "zh-HK", "de")).to_s - assert_equal "zh-yue", Locale.available. preferred(Locale.list("yue", "zh-yue", "zh-HK", "de")).to_s - assert_equal "zh-yue", Locale.available. preferred(Locale.list("yue", "zh-YUE", "zh-HK", "de")).to_s + assert_equal "zh-yue", Locale.available.preferred(Locale.list("yue", "zh-yue", "zh-HK", "de")).to_s + assert_equal "zh-yue", Locale.available.preferred(Locale.list("yue", "zh-YUE", "zh-HK", "de")).to_s assert_equal "en", Locale.available.preferred(Locale.list("yue")).to_s end end