From a742ede82309b3af2629aa5a5bffadb0cdb0301c Mon Sep 17 00:00:00 2001 From: Kyril Revels Date: Sat, 30 May 2015 18:58:19 -0400 Subject: [PATCH] resolves #16 to include notes on transactional fixtures --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 56a329c..fc07234 100644 --- a/README.md +++ b/README.md @@ -179,6 +179,13 @@ meeting.save Auditor.audit # => [...] ``` +## Notes on Testing + +### ActiveRecord <= 4.0 + +This gem makes use of ActiveRecord's `after_commit` lifecycle hook to broadcast events, which will create issues when testing with transactional fixtures. Unless you also include the [test_after_commit gem](https://github.com/grosser/test_after_commit) ActiveRecord models will not broadcast any lifecycle events within your tests. + + ## Compatibility Tested on 1.9.3, 2.x, Rubinius and JRuby for ActiveRecord ~> 3.0 and ~> 4.0