Hacker News new | past | comments | ask | show | jobs | submit login

Nested transactions handle commits. At the beginning of a test, a new transaction is begun, and it is rolled back at the end of the test. As others have pointed out in this discussion, it's pretty standard with Ruby on Rails apps, especially those which use rspec for testing.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: