It's sort of annoying not to be able to test after_commit hooks with
transactional fixtures.  Mat Brown came up with this solution:

http://outofti.me/post/4777884779/test-after-commit-hooks-with-transactional-fixtures

I am pretty uncomfortable having this monkey patch in my app given its
scope, so I'm wondering if there might be some way to fix this in
Rails proper.  Before putting any time into this I wanted to get Core
feedback as to whether the essence of Mat's solution would be
acceptable, or if you anticipate too many problems, or if there is an
alternate approach worth pursuing...

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to