diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-06-09 07:46:07 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-06-09 07:46:07 +0000 |
commit | 7fba8bc682431baa7bcaf4c862fd6ca70b9eb053 (patch) | |
tree | f3c56e8005de8733336da8f355ef33ff1d59a93b /test/unit/lib/redmine/i18n_test.rb | |
parent | 2314e41474b8d15fa7fa496de2b93875429adb5e (diff) | |
download | redmine-7fba8bc682431baa7bcaf4c862fd6ca70b9eb053.tar.gz redmine-7fba8bc682431baa7bcaf4c862fd6ca70b9eb053.zip |
Change in Rails' for handling localized number precision (#11118).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9782 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib/redmine/i18n_test.rb')
-rw-r--r-- | test/unit/lib/redmine/i18n_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/lib/redmine/i18n_test.rb b/test/unit/lib/redmine/i18n_test.rb index 9c7d92849..0b7ee20f0 100644 --- a/test/unit/lib/redmine/i18n_test.rb +++ b/test/unit/lib/redmine/i18n_test.rb @@ -121,7 +121,8 @@ class Redmine::I18nTest < ActiveSupport::TestCase valid_languages.each do |lang| set_language_if_valid lang assert_nothing_raised "#{lang} failure" do - number_to_human_size(1024*1024*4) + size = number_to_human_size(257024) + assert_match /251/, size end end end |