[rspec-users] RSpec, Rails, ObjectDaddy and transactions
Tim Glen
tim at pivotib.com
Fri Sep 26 14:33:02 EDT 2008
>> Oh, and I do have this line in my spec_helper:
>> config.use_transactional_fixtures = true
>>
>> I assume that only does anything to fixtures, specifically
>
> No. That tells rspec/ test::unit to start a transaction at the
> start of every test case, and issue a rollback when it's over.
>
> That + a transactional database / storage engine should work out of
> the box.
aha! somehow the tables in my mysql db became MyISAM rather than
InnoDB. Not sure how that happened since they're all innodb on the
production server.
thanks for helping to keep me humble :)
tim
More information about the rspec-users
mailing list