1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #3064 from arunagw/jruby_test_fix_query_cache_test

fix test error when running with postgresql.
This commit is contained in:
Santiago Pastorino 2011-09-19 12:35:18 -07:00
commit 7dbf6960c0

View file

@ -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)
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