diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-06-14 21:52:13 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-06-14 21:52:13 +0200 |
commit | 247cc2205dbb2f7bb8179d29530d48e4753d6ef1 (patch) | |
tree | 22560f48d9fadd0be2496d3e4ac2682073b88a6c /actionview/test/template/number_helper_test.rb | |
parent | fd4bb5af5f1406802c56a8259cf08f5440424034 (diff) | |
parent | cffbceeb03bd106191c8d8c8896d777a18f7dffa (diff) | |
download | rails-247cc2205dbb2f7bb8179d29530d48e4753d6ef1.tar.gz rails-247cc2205dbb2f7bb8179d29530d48e4753d6ef1.tar.bz2 rails-247cc2205dbb2f7bb8179d29530d48e4753d6ef1.zip |
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`
Diffstat (limited to 'actionview/test/template/number_helper_test.rb')
-rw-r--r-- | actionview/test/template/number_helper_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionview/test/template/number_helper_test.rb b/actionview/test/template/number_helper_test.rb index 0495224d04..b59883b760 100644 --- a/actionview/test/template/number_helper_test.rb +++ b/actionview/test/template/number_helper_test.rb @@ -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 |