Skip to content

Commit

Permalink
Merge pull request #25272 from kamipo/fix_sqlite3_test_failure
Browse files Browse the repository at this point in the history
Fix sqlite3 test failure
  • Loading branch information
eileencodes committed Jun 4, 2016
2 parents 66ebbc4 + faed011 commit 0ddcade
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions activerecord/test/cases/adapters/sqlite3/quoting_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down

0 comments on commit 0ddcade

Please sign in to comment.