Permalink
Browse files

Merge pull request #27366 from utilum/avoid_fixnum_warning

Fix Fixnum deprecated warning in Ruby 2.4+
  • Loading branch information...
matthewd committed Dec 18, 2016
2 parents 5b37c9c + 598f10c commit 3b055d2ca4d0836b2b32795dd2e0cfe5866c0ab0
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/test/core_ext/duration_test.rb
@@ -21,7 +21,7 @@ class << k; undef_method :== end
end end
def test_instance_of def test_instance_of
assert 1.minute.instance_of?(Fixnum) assert 1.minute.instance_of?(1.class)
assert 2.days.instance_of?(ActiveSupport::Duration) assert 2.days.instance_of?(ActiveSupport::Duration)
assert !3.second.instance_of?(Numeric) assert !3.second.instance_of?(Numeric)
end end

0 comments on commit 3b055d2

Please sign in to comment.