diff options
author | Arun Agrawal <arunagw@gmail.com> | 2011-09-18 23:20:09 +0530 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2011-09-18 23:20:09 +0530 |
commit | d589d9f16045e535d5cefc5ae34b5d4340c17d80 (patch) | |
tree | adf60e38c2e957cfc1cc4cf768a8c49d3bb75cec /activerecord | |
parent | 51bef9d8fb0b4da7a104425ab8545e9331387743 (diff) | |
download | rails-d589d9f16045e535d5cefc5ae34b5d4340c17d80.tar.gz rails-d589d9f16045e535d5cefc5ae34b5d4340c17d80.tar.bz2 rails-d589d9f16045e535d5cefc5ae34b5d4340c17d80.zip |
fix test error when running with postgresql.
This Sqlite3 should be in if block.
Was giving error because sqlite3 is not loaded
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/query_cache_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activerecord/test/cases/query_cache_test.rb b/activerecord/test/cases/query_cache_test.rb index cda30a773e..7feac2b920 100644 --- a/activerecord/test/cases/query_cache_test.rb +++ b/activerecord/test/cases/query_cache_test.rb @@ -147,8 +147,10 @@ class QueryCacheTest < ActiveRecord::TestCase end def test_cache_does_not_wrap_string_results_in_arrays - require 'sqlite3/version' if current_adapter?(:SQLite3Adapter) - sqlite3_version = RUBY_PLATFORM =~ /java/ ? Jdbc::SQLite3::VERSION : SQLite3::VERSION + if current_adapter?(:SQLite3Adapter) + require 'sqlite3/version' + sqlite3_version = RUBY_PLATFORM =~ /java/ ? Jdbc::SQLite3::VERSION : SQLite3::VERSION + end Task.cache do # Oracle adapter returns count() as Fixnum or Float |