It's sort of annoying not to be able to test after_commit hooks with
transactional fixtures. Mat Brown came up with this solution:
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...