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")
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