Skip to content

Commit

Permalink
fix test error when running with postgresql.
Browse files Browse the repository at this point in the history
This Sqlite3 should be in if block.
Was giving error because sqlite3 is not loaded
  • Loading branch information
arunagw committed Sep 18, 2011
1 parent 51bef9d commit d589d9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions activerecord/test/cases/query_cache_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ def test_cache_is_flat
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
Expand Down

0 comments on commit d589d9f

Please sign in to comment.