Technical deep-dive
Database transactions in RSpec
Weird things under the hood
Published in
4 min readJun 19, 2020
Stale data between test cases is one of the major causes of race conditions in RSpec. This includes data in databases, Redis, files, …
In this article, we would be focusing on how to clean up stale data in databases.