提交 dc2cd266 编写于 作者: E Emilio Tagua

Rename tests to avoid name collisions and warnings when running rake task.

上级 f63f9013
......@@ -41,7 +41,7 @@ def setup
:custom_units_for_number_to_human => {:mili => "mm", :centi => "cm", :deci => "dm", :unit => "m", :ten => "dam", :hundred => "hm", :thousand => "km"}
end
def test_number_to_currency
def test_number_to_i18n_currency
assert_equal("&$ - 10.00", number_to_currency(10, :locale => 'ts'))
end
......@@ -51,7 +51,7 @@ def test_number_to_currency_with_clean_i18n_settings
end
end
def test_number_with_precision
def test_number_with_i18n_precision
#Delimiter was set to ""
assert_equal("10000", number_with_precision(10000, :locale => 'ts'))
......@@ -60,12 +60,12 @@ def test_number_with_precision
end
def test_number_with_delimiter
def test_number_with_i18n_delimiter
#Delimiter "," and separator "."
assert_equal("1,000,000.234", number_with_delimiter(1000000.234, :locale => 'ts'))
end
def test_number_to_percentage
def test_number_to_i18n_percentage
# to see if strip_insignificant_zeros is true
assert_equal("1%", number_to_percentage(1, :locale => 'ts'))
# precision is 2, significant should be inherited
......@@ -74,7 +74,7 @@ def test_number_to_percentage
assert_equal("12434%", number_to_percentage(12434, :locale => 'ts'))
end
def test_number_to_human_size
def test_number_to_i18n_human_size
#b for bytes and k for kbytes
assert_equal("2 k", number_to_human_size(2048, :locale => 'ts'))
assert_equal("42 b", number_to_human_size(42, :locale => 'ts'))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册