Skip to content

Commit 7427d2c

Browse files
committed
🚨 warning: constant ::Bignum is deprecated
- Fixnum & Bignum were unified into Integer in Ruby 2.4.0 Ref: https://www.ruby-lang.org/en/news/2016/12/25/ruby-2-4-0-released/
1 parent 26b8227 commit 7427d2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎test/test_cryptutil.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ class CryptUtilTestCase < Minitest::Test
88

99
def test_rand
1010
# If this is not true, the rest of our test won't work
11-
assert(BIG.is_a?(Bignum))
11+
assert(BIG.is_a?(Integer))
1212

1313
# It's possible that these will be small enough for fixnums, but
1414
# extraorindarily unlikely.
1515
a = OpenID::CryptUtil.rand(BIG)
1616
b = OpenID::CryptUtil.rand(BIG)
17-
assert(a.is_a?(Bignum))
18-
assert(b.is_a?(Bignum))
17+
assert(a.is_a?(Integer))
18+
assert(b.is_a?(Integer))
1919
refute_equal(a, b)
2020
end
2121

0 commit comments

Comments
 (0)