Permalink
Browse files

Merge pull request #25272 from kamipo/fix_sqlite3_test_failure

Fix sqlite3 test failure
  • Loading branch information...
eileencodes committed Jun 4, 2016
2 parents 66ebbc4 + faed011 commit 0ddcade928741886ad2ac1bd0273c3ce28a5e1e1
@@ -80,14 +80,14 @@ def quoted_id
def test_quoting_binary_strings
value = "hello".encode('ascii-8bit')
type = Type::String.new
type = ActiveRecord::Type::String.new
assert_equal "'hello'", @conn.quote(type.serialize(value))
end
def test_quoted_time_returns_date_qualified_time
value = ::Time.utc(2000, 1, 1, 12, 30, 0, 999999)
type = Type::Time.new
type = ActiveRecord::Type::Time.new
assert_equal "'2000-01-01 12:30:00.999999'", @conn.quote(type.serialize(value))
end
@@ -4,7 +4,7 @@ class SQLite3StatementPoolTest < ActiveRecord::SQLite3TestCase
if Process.respond_to?(:fork)
def test_cache_is_per_pid
cache = StatementPool.new(10)
cache = ActiveRecord::ConnectionAdapters::SQLite3Adapter::StatementPool.new(10)
cache['foo'] = 'bar'
assert_equal 'bar', cache['foo']

0 comments on commit 0ddcade

Please sign in to comment.