Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

reload I18n as we are defining `:ts` locale

  • Loading branch information...
commit cffbceeb03bd106191c8d8c8896d777a18f7dffa 1 parent 2d3cfcc
Kuldeep Aggarwal kuldeepaggarwal authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  actionview/test/template/number_helper_test.rb
2  actionview/test/template/number_helper_test.rb
View
@@ -114,6 +114,8 @@ def test_number_to_human_with_custom_translation_scope
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
Please sign in to comment.
Something went wrong with that request. Please try again.