Test after_commit hooks with transactional fixtures
Rails 3 has built-in after commit hooks: awesome! Those hooks don’t fire during tests/specs when transactional fixtures are enabled: non-awesome! It’s pretty easy to monkey-patch it to work the way you’d expect: awesome!
Post a comment