1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #15737 from kuldeepaggarwal/fix-build

reload I18n as we are defining `:ts` locale  in  `test_number_to_human_with_custom_translation_scope`
This commit is contained in:
Yves Senn 2014-06-14 21:52:13 +02:00
commit 247cc2205d

View file

@ -114,6 +114,8 @@ class NumberHelperTest < ActionView::TestCase
I18n.backend.store_translations 'ts',
:custom_units_for_number_to_human => {:mili => "mm", :centi => "cm", :deci => "dm", :unit => "m", :ten => "dam", :hundred => "hm", :thousand => "km"}
assert_equal "1.01 cm", number_to_human(0.0101, :locale => 'ts', :units => :custom_units_for_number_to_human)
ensure
I18n.reload!
end
def test_number_helpers_outputs_are_html_safe