test_after_commit: Error after updating to 1.2.0
I just updated to v1.2.0 and I’m getting this error when I seed the database:
NoMethodError: undefined method `records' for #<ActiveRecord::ConnectionAdapters::NullTransaction:0x000000000a51c048>
/app/heroku/ruby/bundle/ruby/2.4.4/gems/test_after_commit-1.2.0/lib/test_after_commit/database_statements.rb:45:in `test_commit_records'
/app/heroku/ruby/bundle/ruby/2.4.4/gems/test_after_commit-1.2.0/lib/test_after_commit/database_statements.rb:29:in `transaction'
Any hints on why this is happening?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 4
- Comments: 16 (9 by maintainers)
Commits related to this issue
- Fix error when commit occures in topmost transaction with TAC enabled Fixes #51 — committed to printercu/test_after_commit by printercu 6 years ago
- Fix error when commit occurs in topmost transaction with TAC enabled Fixes #51 — committed to printercu/test_after_commit by printercu 6 years ago
- Fix error when commit occurs in topmost transaction with TAC enabled Fixes #51 — committed to printercu/test_after_commit by printercu 6 years ago
- Fix error when commit occurs in topmost transaction with TAC enabled Fixes #51 — committed to printercu/test_after_commit by printercu 6 years ago
- Fix error when commit occurs in topmost transaction with TAC enabled Fixes #51 — committed to printercu/test_after_commit by printercu 6 years ago
- Fix error when commit occurs in topmost transaction with TAC enabled Fixes #51 — committed to printercu/test_after_commit by printercu 6 years ago
- Fix error when commit occurs in topmost transaction with TAC enabled Fixes #51 — committed to printercu/test_after_commit by printercu 6 years ago
- Fix error when commit occurs in topmost transaction with TAC enabled Fixes #51 — committed to printercu/test_after_commit by printercu 6 years ago
- Fix error when commit occurs in topmost transaction with TAC enabled Fixes #51 — committed to printercu/test_after_commit by printercu 6 years ago
- Fix error when commit occurs in topmost transaction with TAC enabled Fixes #51 — committed to printercu/test_after_commit by printercu 6 years ago
- Fix error when commit occurs in topmost transaction with TAC enabled Fixes #51 — committed to printercu/test_after_commit by printercu 6 years ago
1.2.2