aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/query_cache_test.rb
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-10-08 08:13:11 +1030
committerMatthew Draper <matthew@trebex.net>2016-10-08 08:13:11 +1030
commitcb0452e9a50e97f8ab2100f6226fbdd47a970a34 (patch)
tree611edac41561efabba8cb12d6839fa3f3033fc9a /activerecord/test/cases/query_cache_test.rb
parentfc0b62597f9c34bd028fd91457b8865eea42cc2d (diff)
downloadrails-cb0452e9a50e97f8ab2100f6226fbdd47a970a34.tar.gz
rails-cb0452e9a50e97f8ab2100f6226fbdd47a970a34.tar.bz2
rails-cb0452e9a50e97f8ab2100f6226fbdd47a970a34.zip
Fixnum and Bignum are deprecated in Ruby trunk
https://bugs.ruby-lang.org/issues/12739
Diffstat (limited to 'activerecord/test/cases/query_cache_test.rb')
-rw-r--r--activerecord/test/cases/query_cache_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/query_cache_test.rb b/activerecord/test/cases/query_cache_test.rb
index 7f7faca70d..16cf2bd2d0 100644
--- a/activerecord/test/cases/query_cache_test.rb
+++ b/activerecord/test/cases/query_cache_test.rb
@@ -138,7 +138,7 @@ class QueryCacheTest < ActiveRecord::TestCase
assert_kind_of Numeric, Task.connection.select_value("SELECT count(*) AS count_all FROM tasks")
elsif current_adapter?(:SQLite3Adapter, :Mysql2Adapter, :PostgreSQLAdapter)
# Future versions of the sqlite3 adapter will return numeric
- assert_instance_of Fixnum, Task.connection.select_value("SELECT count(*) AS count_all FROM tasks")
+ assert_instance_of 0.class, Task.connection.select_value("SELECT count(*) AS count_all FROM tasks")
else
assert_instance_of String, Task.connection.select_value("SELECT count(*) AS count_all FROM tasks")
end