diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-11-13 18:08:57 -0500 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-11-13 18:08:57 -0500 |
commit | 546ff50d823d07368358f797632caaefa5776c71 (patch) | |
tree | f73c45dd9110e6cbdc138401dd824f0bdc25eabb /activesupport/test | |
parent | 5b2ea20f562aa09ade8965f72c4075dd79609956 (diff) | |
download | rails-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')
-rw-r--r-- | activesupport/test/core_ext/numeric_ext_test.rb | 1 |
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 |