aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-12-04 10:20:01 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-12-04 10:22:46 -0200
commitc82025fcd6f5da92448a1362b38c0a0a9e966a12 (patch)
tree2de69c5d6e60bf644243c660bb2ff370a3d48f70 /actionpack/test
parent9c60e3df9f202e8db37bea4ddddef47605075bcc (diff)
downloadrails-c82025fcd6f5da92448a1362b38c0a0a9e966a12.tar.gz
rails-c82025fcd6f5da92448a1362b38c0a0a9e966a12.tar.bz2
rails-c82025fcd6f5da92448a1362b38c0a0a9e966a12.zip
Fix documentation of number_to_currency helper
Now users have to explicit mark the unit as safe if they trust it. Closes #13161
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/number_helper_i18n_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/template/number_helper_i18n_test.rb b/actionpack/test/template/number_helper_i18n_test.rb
index 4710cbf6bc..5a3250e949 100644
--- a/actionpack/test/template/number_helper_i18n_test.rb
+++ b/actionpack/test/template/number_helper_i18n_test.rb
@@ -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' } } }