diff options
author | Alberto Almagro <albertoalmagro@gmail.com> | 2019-01-04 00:27:12 +0100 |
---|---|---|
committer | Alberto Almagro <albertoalmagro@gmail.com> | 2019-01-04 00:41:22 +0100 |
commit | d237c7c72ccfd87302983669f83c8c90d2aec82e (patch) | |
tree | 10f8e59a03c1fa0de8ca86ccbc058fc0727d18d8 /actionmailer/test/assert_select_email_test.rb | |
parent | 3f2c86573155be1143107a8d81154b119fcb08ed (diff) | |
download | rails-d237c7c72ccfd87302983669f83c8c90d2aec82e.tar.gz rails-d237c7c72ccfd87302983669f83c8c90d2aec82e.tar.bz2 rails-d237c7c72ccfd87302983669f83c8c90d2aec82e.zip |
Make average compatible accross Ruby versions
Since Ruby 2.6.0 NilClass#to_d is returning `BigDecimal` 0.0, this
breaks `average` compatibility with prior Ruby versions. This patch
makes `average` return `nil` in all Ruby versions when there are no
rows.
Diffstat (limited to 'actionmailer/test/assert_select_email_test.rb')
0 files changed, 0 insertions, 0 deletions