aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/numeric_ext_test.rb
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2016-11-13 18:08:57 -0500
committerVipul A M <vipulnsward@gmail.com>2016-11-13 18:08:57 -0500
commit546ff50d823d07368358f797632caaefa5776c71 (patch)
treef73c45dd9110e6cbdc138401dd824f0bdc25eabb /activesupport/test/core_ext/numeric_ext_test.rb
parent5b2ea20f562aa09ade8965f72c4075dd79609956 (diff)
downloadrails-546ff50d823d07368358f797632caaefa5776c71.tar.gz
rails-546ff50d823d07368358f797632caaefa5776c71.tar.bz2
rails-546ff50d823d07368358f797632caaefa5776c71.zip
Remove warning from access to Bignum class, 2**64 is already a known bignum value. See also http://patshaughnessy.net/2014/1/9/how-big-is-a-bignum for smallest bignum value
Diffstat (limited to 'activesupport/test/core_ext/numeric_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/numeric_ext_test.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/numeric_ext_test.rb b/activesupport/test/core_ext/numeric_ext_test.rb
index dfc9bc24c7..c60b654d1d 100644
--- a/activesupport/test/core_ext/numeric_ext_test.rb
+++ b/activesupport/test/core_ext/numeric_ext_test.rb
@@ -423,7 +423,6 @@ class NumericExtFormattingTest < ActiveSupport::TestCase
# TODO: Remove positive and negative tests when we drop support to ruby < 2.3
b = 2**64
- b *= b until Bignum === b
T_ZERO = b.coerce(0).first
T_ONE = b.coerce(1).first