Blog38.1K views2,305 votes0 replies3,138 following
Managing Test State with RSpec around(:each) Hooks
Stop fighting leaky test databases. Learn how to use RSpec's around(:each) hook to wrap tests in transactions for faster, cleaner, and more reliable Rails test suites.