Michael Guterl wrote in post #980563: > Hi Kurt, > > On Tue, Feb 8, 2011 at 8:32 PM, Kurt <k...@cissor.com> wrote: >> >> Did you add these two lines to your spec_helper.rb file or somewhere else? >> >> ActiveRecord::Base.send(:include, AfterCommit::AfterSavepoint) >> ActiveRecord::Base.include_after_savepoint_extensions >> >> I'd be interested in helping to get this to work, but not sure where to >> start as we're new to after_commit. >> > > after_commit is built-in to Rails 3, so you don't need the gem. Rails > 3 does not include any type of AfterSavepoint helper for running with > transactional fixtures turned on. That is the piece that needs to be > ported over to Rails 3. > > Best, > Michael Guterl
Hi guys, Just wanted to let you know that I had the same problem and ended up writing a monkey-patch for it: http://outofti.me/post/4777884779/test-after-commit-hooks-with-transactional-fixtures Pretty straightforward, fairly clean as monkey patches go, if I may. Mat -- Posted via http://www.ruby-forum.com/. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users