search for: aftercommit

Displaying 1 result from an estimated 1 matches for "aftercommit".

Did you mean: after_commit
2011 Jan 14
4
Rails 3 / RSpec 2 use_transactional_fixtures and after_commit
...hub.com/freelancing-god/after_commit "Keep in mind that transactions are finicky at best in tests, and so there?s a helper module to make after_commit play nicely in your testing context. You?ll need to add these two lines to your spec/test helper:" ActiveRecord::Base.send(:include, AfterCommit::AfterSavepoint) ActiveRecord::Base.include_after_savepoint_extensions Anyone else ran into this? Best, Michael Guterl