aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-06 11:41:30 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-06 13:03:21 -0300
commit50d6b4549d56ac3a82f2096bd479a7b2305b0bf3 (patch)
treeee2d1749ea614b9403fcb2f7a349a09c30a1d79f /actionpack/test
parent4e8f1d258854d0d6a6bff5955ef1aeb4fbb1dc00 (diff)
downloadrails-50d6b4549d56ac3a82f2096bd479a7b2305b0bf3.tar.gz
rails-50d6b4549d56ac3a82f2096bd479a7b2305b0bf3.tar.bz2
rails-50d6b4549d56ac3a82f2096bd479a7b2305b0bf3.zip
Fix broken tests of the previous release
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/number_helper_i18n_test.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/actionpack/test/template/number_helper_i18n_test.rb b/actionpack/test/template/number_helper_i18n_test.rb
index d6e9de9555..5a3250e949 100644
--- a/actionpack/test/template/number_helper_i18n_test.rb
+++ b/actionpack/test/template/number_helper_i18n_test.rb
@@ -7,7 +7,7 @@ class NumberHelperTest < ActionView::TestCase
I18n.backend.store_translations 'ts',
:number => {
:format => { :precision => 3, :delimiter => ',', :separator => '.', :significant => false, :strip_insignificant_zeros => false },
- :currency => { :format => { :unit => '&$', :format => '%u - %n', :negative_format => '(%u - %n)', :precision => 2 } },
+ :currency => { :format => { :unit => '$$$', :format => '%u - %n', :negative_format => '(%u - %n)', :precision => 2 } },
:human => {
:format => {
:precision => 2,
@@ -42,9 +42,9 @@ class NumberHelperTest < ActionView::TestCase
end
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'))
- assert_equal("-10.00 - &$", number_to_currency(-10, :locale => 'ts', :format => "%n - %u"))
+ assert_equal("$$$ - 10.00", number_to_currency(10, :locale => 'ts'))
+ assert_equal("($$$ - 10.00)", number_to_currency(-10, :locale => 'ts'))
+ assert_equal("-10.00 - $$$", number_to_currency(-10, :locale => 'ts', :format => "%n - %u"))
end
def test_number_to_currency_with_clean_i18n_settings
@@ -53,7 +53,7 @@ class NumberHelperTest < ActionView::TestCase
assert_equal("-$10.00", number_to_currency(-10))
end
end
-
+
def test_number_to_currency_without_currency_negative_format
clean_i18n do
I18n.backend.store_translations 'ts', :number => { :currency => { :format => { :unit => '@', :format => '%n %u' } } }