You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
818 B
23 lines
818 B
From 598f10c00084f20e277b82ed83a8ef8bd85a1a78 Mon Sep 17 00:00:00 2001
|
|
From: utilum <oz@utilum.com>
|
|
Date: Thu, 15 Dec 2016 02:42:52 +0100
|
|
Subject: [PATCH] Fix Fixnum deprecated warning in Ruby 2.4+
|
|
|
|
---
|
|
activesupport/test/core_ext/duration_test.rb | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/activesupport/test/core_ext/duration_test.rb b/activesupport/test/core_ext/duration_test.rb
|
|
index 26a9ea4..6f7f16d 100644
|
|
--- a/activesupport/test/core_ext/duration_test.rb
|
|
+++ b/activesupport/test/core_ext/duration_test.rb
|
|
@@ -21,7 +21,7 @@ class << k; undef_method :== end
|
|
end
|
|
|
|
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 !3.second.instance_of?(Numeric)
|
|
end
|