aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/base_test.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2014-08-20 16:10:37 +0200
committerXavier Noria <fxn@hashref.com>2014-08-20 16:25:35 +0200
commit500deece9ef511c59a8c6edc7fb8682b13c4cd7e (patch)
tree38baa5e3fa8014fde4b9eea4478ce39cac8d576d /actionmailer/test/base_test.rb
parent3a1edcff09fb7ff9c7246d71525f4c23c61e113d (diff)
downloadrails-500deece9ef511c59a8c6edc7fb8682b13c4cd7e.tar.gz
rails-500deece9ef511c59a8c6edc7fb8682b13c4cd7e.tar.bz2
rails-500deece9ef511c59a8c6edc7fb8682b13c4cd7e.zip
Fixes the digits counter of AS's NumberToRoundedConverter
Zero has one digit, but Math.log10(0) returns -Infinity. The method needs to special-case zero. The patch adds a regression test that is not clearly related to the underlying issue because digit_count is private and has no coverage. Gray area. This bug was uncovered by 60062cf.
Diffstat (limited to 'actionmailer/test/base_test.rb')
0 files changed, 0 insertions, 0 deletions