Skip to content

Commit

Permalink
Merge pull request krisleech#18 from krevels/notes_on_transactional_f…
Browse files Browse the repository at this point in the history
…ixtures

notes on use with transactional fixtures -- resolves krisleech#16
  • Loading branch information
krisleech committed Jun 8, 2015
2 parents 8725037 + a742ede commit 96a87c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96a87c6

Please sign in to comment.