Throwing ActiveRecord::Rollback works, but not in tests.
I\'ve had this problem before, am now having it again, and for some reason can\'t find any record of someone
Actually the method to call is as follows:
class RollbackTest < ActiveSupport::TestCase
self.use_transactional_fixtures = false
not self.use_transaction_fixtures
(note the missing 'al')
You should turn off transactions in your test case:
class RollbackTest < ActiveSupport::TestCase
self.use_transactional_fixtures = false
[edit: as per @Conrad's comment it should be transactionAL
]