diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-01-29 01:53:21 -0500 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-01-29 01:53:21 -0500 |
commit | 22261405a38dbab84c98925fb4cfbef700d400a4 (patch) | |
tree | 496d345a52e8cbaeb0d149f3b18743ffe85b1b3a /activesupport/test | |
parent | 4de092240004e31c512810b19e1b7a83e1ddc77e (diff) | |
parent | d3f178bb92473b4d7bb400be56c983203b1662e9 (diff) | |
download | rails-22261405a38dbab84c98925fb4cfbef700d400a4.tar.gz rails-22261405a38dbab84c98925fb4cfbef700d400a4.tar.bz2 rails-22261405a38dbab84c98925fb4cfbef700d400a4.zip |
Merge pull request #23329 from prathamesh-sonpatki/fix-23320
Change number_to_currency behavior for checking negativity of a number
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/number_helper_test.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/activesupport/test/number_helper_test.rb b/activesupport/test/number_helper_test.rb index b3464462c8..6696111476 100644 --- a/activesupport/test/number_helper_test.rb +++ b/activesupport/test/number_helper_test.rb @@ -74,7 +74,6 @@ module ActiveSupport assert_equal("1,234,567,890.50 Kč", number_helper.number_to_currency("1234567890.50", {:unit => "Kč", :format => "%n %u"})) assert_equal("1,234,567,890.50 - Kč", number_helper.number_to_currency("-1234567890.50", {:unit => "Kč", :format => "%n %u", :negative_format => "%n - %u"})) assert_equal("0.00", number_helper.number_to_currency(+0.0, {:unit => "", :negative_format => "(%n)"})) - assert_equal("(0.00)", number_helper.number_to_currency(-0.0, {:unit => "", :negative_format => "(%n)"})) end end |