diff options
author | Matthew Draper <matthew@trebex.net> | 2016-10-08 10:50:36 +1030 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-08 10:50:36 +1030 |
commit | 253ddeb3ce435e18086804340e1b0c30fb7d43f6 (patch) | |
tree | ad85affb51255c896a09e913052f603a03dadc7b /activerecord/test | |
parent | fb4dc3224508ba55320ecc61bf7da5f1282d6873 (diff) | |
parent | cb0452e9a50e97f8ab2100f6226fbdd47a970a34 (diff) | |
download | rails-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.rb | 2 |
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 |