]> git.openstreetmap.org Git - rails.git/commitdiff
Fix new rubocop warnings
authorTom Hughes <tom@compton.nu>
Sun, 19 Apr 2020 18:06:07 +0000 (19:06 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 19 Apr 2020 18:06:07 +0000 (19:06 +0100)
test/lib/locale_test.rb

index 65c7ea398799e3333423f04afcfca10081d06e2e..4d457116013e55ca6c84bfb208018801de3d4136 100644 (file)
@@ -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