mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Dont re-define class SQLite3Adapter on test
We were declaring in a few tests, which depending of
the order load will cause an error, as the super class could change.
see ac1c4e141b (commitcomment-17731383)
This commit is contained in:
parent
755f6bf3d3
commit
66ebbc4952
2 changed files with 87 additions and 97 deletions
|
@ -3,10 +3,7 @@ require 'bigdecimal'
|
|||
require 'yaml'
|
||||
require 'securerandom'
|
||||
|
||||
module ActiveRecord
|
||||
module ConnectionAdapters
|
||||
class SQLite3Adapter
|
||||
class QuotingTest < ActiveRecord::SQLite3TestCase
|
||||
class SQLite3QuotingTest < ActiveRecord::SQLite3TestCase
|
||||
def setup
|
||||
@conn = ActiveRecord::Base.connection
|
||||
end
|
||||
|
@ -95,6 +92,3 @@ module ActiveRecord
|
|||
assert_equal "'2000-01-01 12:30:00.999999'", @conn.quote(type.serialize(value))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
require 'cases/helper'
|
||||
|
||||
module ActiveRecord::ConnectionAdapters
|
||||
class SQLite3Adapter
|
||||
class StatementPoolTest < ActiveRecord::SQLite3TestCase
|
||||
class SQLite3StatementPoolTest < ActiveRecord::SQLite3TestCase
|
||||
if Process.respond_to?(:fork)
|
||||
def test_cache_is_per_pid
|
||||
|
||||
|
@ -20,5 +18,3 @@ module ActiveRecord::ConnectionAdapters
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue