Solution for: #96: rails tests not getting rolled back
ActiveRecord::Base#establish_connection
- kueda on May 19, 2010, 11:25 PM UTC
If you're testing code that switches db connections, this will break the transaction that wraps your test. That test might pass, but it will leave data in the db that might break subsequent tests.