aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-01-10 11:36:23 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-01-10 11:40:19 -0800
commit06165856196ac17b87163d146abea46019b17032 (patch)
treefb003d670bd180787fbd33d88105a61ce224ad31 /activerecord
parent366e7854ac41699217e8cad1a336ab845c781359 (diff)
downloadrails-06165856196ac17b87163d146abea46019b17032.tar.gz
rails-06165856196ac17b87163d146abea46019b17032.tar.bz2
rails-06165856196ac17b87163d146abea46019b17032.zip
use SQLite3::VERSION rather than the deprecated class
Diffstat (limited to 'activerecord')
-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 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")