diff options
author | utilum <oz@utilum.com> | 2016-12-15 02:42:52 +0100 |
---|---|---|
committer | utilum <oz@utilum.com> | 2016-12-16 10:57:19 +0100 |
commit | 598f10c00084f20e277b82ed83a8ef8bd85a1a78 (patch) | |
tree | e2cf06d8064e3aac4f1fc6280e51929a3e36414a /activesupport/test | |
parent | 1f0fe334f577479ad524cb990bef4454585857c0 (diff) | |
download | rails-598f10c00084f20e277b82ed83a8ef8bd85a1a78.tar.gz rails-598f10c00084f20e277b82ed83a8ef8bd85a1a78.tar.bz2 rails-598f10c00084f20e277b82ed83a8ef8bd85a1a78.zip |
Fix Fixnum deprecated warning in Ruby 2.4+
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/duration_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/duration_test.rb b/activesupport/test/core_ext/duration_test.rb index 26a9ea4aee..6f7f16da5b 100644 --- a/activesupport/test/core_ext/duration_test.rb +++ b/activesupport/test/core_ext/duration_test.rb @@ -21,7 +21,7 @@ class DurationTest < ActiveSupport::TestCase 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 |