Open jetienne opened 2 months ago
Hi @jetienne, thanks for reporting that. We have a PR https://github.com/thoughtbot/shoulda-matchers/pull/1632/files that introduces compatibility between shoulda-matchers and Rails 7.2 and fixes this problem. We're waiting for the official release to merge it, to avoid any late change from the Rails team.
Thanks @matsales28 I'm attempting to upgrade to Rails 7.2 now and hitting this issue. I'll temporarily disable the counter_cache checks until the PR is merged.
Description
Testing counter_cache no longer works with Rails 7.2.beta.
Reproduction Steps
Define an association like this:
The following test will fail:
System configuration
shoulda-matchers (6.2.0)