Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在这里参考这个线程,这是否意味着截断策略将强制每个线程使用相同的数据库,还是意味着 Capybara + Rspec 将在同一个线程中运行?
只有一个数据库独立于您使用的数据库清理策略,并且 RSpec 和 Capybara 始终在同一个线程中运行。
您所指的 SO 问题是讨论 Selenium 服务器在单独的线程中运行的事实,这(通常)意味着单独的数据库连接,这意味着与 Capybara/RSpec 使用的事务不同的事务。