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

This commit is contained in:
Emilio Tagua 2010-09-28 15:30:59 -03:00
parent f63f90134a
commit dc2cd266cd
1 changed files with 5 additions and 5 deletions

View File

@ -41,7 +41,7 @@ class NumberHelperTest < ActionView::TestCase
:custom_units_for_number_to_human => {:mili => "mm", :centi => "cm", :deci => "dm", :unit => "m", :ten => "dam", :hundred => "hm", :thousand => "km"} :custom_units_for_number_to_human => {:mili => "mm", :centi => "cm", :deci => "dm", :unit => "m", :ten => "dam", :hundred => "hm", :thousand => "km"}
end end
def test_number_to_currency def test_number_to_i18n_currency
assert_equal("&$ - 10.00", number_to_currency(10, :locale => 'ts')) assert_equal("&$ - 10.00", number_to_currency(10, :locale => 'ts'))
end end
@ -51,7 +51,7 @@ class NumberHelperTest < ActionView::TestCase
end end
end end
def test_number_with_precision def test_number_with_i18n_precision
#Delimiter was set to "" #Delimiter was set to ""
assert_equal("10000", number_with_precision(10000, :locale => 'ts')) assert_equal("10000", number_with_precision(10000, :locale => 'ts'))
@ -60,12 +60,12 @@ class NumberHelperTest < ActionView::TestCase
end end
def test_number_with_delimiter def test_number_with_i18n_delimiter
#Delimiter "," and separator "." #Delimiter "," and separator "."
assert_equal("1,000,000.234", number_with_delimiter(1000000.234, :locale => 'ts')) assert_equal("1,000,000.234", number_with_delimiter(1000000.234, :locale => 'ts'))
end end
def test_number_to_percentage def test_number_to_i18n_percentage
# to see if strip_insignificant_zeros is true # to see if strip_insignificant_zeros is true
assert_equal("1%", number_to_percentage(1, :locale => 'ts')) assert_equal("1%", number_to_percentage(1, :locale => 'ts'))
# precision is 2, significant should be inherited # precision is 2, significant should be inherited
@ -74,7 +74,7 @@ class NumberHelperTest < ActionView::TestCase
assert_equal("12434%", number_to_percentage(12434, :locale => 'ts')) assert_equal("12434%", number_to_percentage(12434, :locale => 'ts'))
end end
def test_number_to_human_size def test_number_to_i18n_human_size
#b for bytes and k for kbytes #b for bytes and k for kbytes
assert_equal("2 k", number_to_human_size(2048, :locale => 'ts')) assert_equal("2 k", number_to_human_size(2048, :locale => 'ts'))
assert_equal("42 b", number_to_human_size(42, :locale => 'ts')) assert_equal("42 b", number_to_human_size(42, :locale => 'ts'))