提交 cffbceeb 编写于 作者: K Kuldeep Aggarwal

reload I18n as we are defining `:ts` locale

fix build- see https://travis-ci.org/rails/rails/jobs/27578159#L2913.
上级 2d3cfcc1
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册