提交 aa92d4a0 编写于 作者: A Akira Matsuda

sqlite3_mem tests are broken since 79887593

since 79887593, create_all task recreates the connection to AR::Base
which doesn't connect to the in_memory database that is set up for tests
上级 a8a97f77
......@@ -100,6 +100,8 @@ def setup
@configurations = { "development" => { "database" => "my-db" } }
ActiveRecord::Base.stubs(:configurations).returns(@configurations)
# To refrain from connecting to a newly created empty DB in sqlite3_mem tests
ActiveRecord::Base.connection_handler.stubs(:establish_connection)
end
def test_ignores_configurations_without_databases
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册