diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-10 11:36:23 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-10 11:40:19 -0800 |
commit | 06165856196ac17b87163d146abea46019b17032 (patch) | |
tree | fb003d670bd180787fbd33d88105a61ce224ad31 /activerecord/test/cases | |
parent | 366e7854ac41699217e8cad1a336ab845c781359 (diff) | |
download | rails-06165856196ac17b87163d146abea46019b17032.tar.gz rails-06165856196ac17b87163d146abea46019b17032.tar.bz2 rails-06165856196ac17b87163d146abea46019b17032.zip |
use SQLite3::VERSION rather than the deprecated class
Diffstat (limited to 'activerecord/test/cases')
-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 33916c4e46..53aefc7b58 100644 --- a/activerecord/test/cases/query_cache_test.rb +++ b/activerecord/test/cases/query_cache_test.rb @@ -63,7 +63,7 @@ class QueryCacheTest < ActiveRecord::TestCase # Oracle adapter returns count() as Fixnum or Float if current_adapter?(:OracleAdapter) assert_kind_of Numeric, Task.connection.select_value("SELECT count(*) AS count_all FROM tasks") - elsif current_adapter?(:SQLite3Adapter) && SQLite3::Version::VERSION > '1.2.5' || current_adapter?(:Mysql2Adapter) || current_adapter?(:MysqlAdapter) + elsif current_adapter?(:SQLite3Adapter) && SQLite3::VERSION > '1.2.5' || current_adapter?(:Mysql2Adapter) || current_adapter?(:MysqlAdapter) # Future versions of the sqlite3 adapter will return numeric assert_instance_of Fixnum, Task.connection.select_value("SELECT count(*) AS count_all FROM tasks") |