Blog38.1K views3,683 votes0 replies3,541 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.