aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-10-08 10:50:36 +1030
committerGitHub <noreply@github.com>2016-10-08 10:50:36 +1030
commit253ddeb3ce435e18086804340e1b0c30fb7d43f6 (patch)
treead85affb51255c896a09e913052f603a03dadc7b /activerecord/test
parentfb4dc3224508ba55320ecc61bf7da5f1282d6873 (diff)
parentcb0452e9a50e97f8ab2100f6226fbdd47a970a34 (diff)
downloadrails-253ddeb3ce435e18086804340e1b0c30fb7d43f6.tar.gz
rails-253ddeb3ce435e18086804340e1b0c30fb7d43f6.tar.bz2
rails-253ddeb3ce435e18086804340e1b0c30fb7d43f6.zip
Merge pull request #26732 from matthewd/fixnum-warning
Fixnum and Bignum are deprecated in Ruby trunk
Diffstat (limited to 'activerecord/test')
-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