class Redmine::I18nTest < ActiveSupport::TestCase
include Redmine::I18n
+ include ActionView::Helpers::NumberHelper
def setup
@hook_module = Redmine::Hook
assert_equal Time.now.strftime('%H %M'), format_time(now, false)
end
+ def test_number_to_human_size_for_each_language
+ valid_languages.each do |lang|
+ set_language_if_valid lang
+ assert_nothing_raised "#{lang} failure" do
+ number_to_human_size(1024*1024*4)
+ end
+ end
+ end
+
def test_valid_languages
assert valid_languages.is_a?(Array)
assert valid_languages.first.is_a?(Symbol)