X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/048ab33934bb34abe323dcbc331512ef7f89328e..10a4c5cf6e1165a9db6e9b87d0fa19d7f97b51bf:/test/lib/locale_test.rb?ds=sidebyside diff --git a/test/lib/locale_test.rb b/test/lib/locale_test.rb index 7b02b3f1f..9aec035d1 100644 --- a/test/lib/locale_test.rb +++ b/test/lib/locale_test.rb @@ -68,7 +68,7 @@ class LocaleTest < ActiveSupport::TestCase end def test_list - assert_equal [], Locale.list + assert_empty Locale.list assert_equal [EN], Locale.list("en") assert_equal [EN, ZH_YUE, ZH_HANT_TW], Locale.list("en", "zh-yue", "zh-Hant-TW") assert_equal [ZH_YUE, ZH_HANT_TW], Locale.list("en;de", "zh-yue", "zh-Hant-TW") @@ -80,7 +80,7 @@ class LocaleTest < ActiveSupport::TestCase end def test_available - assert Locale.available.count <= I18n.available_locales.count + assert_operator Locale.available.count, :<=, I18n.available_locales.count end def test_preferred