RubyFlow The Ruby and Rails community linklog

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in