shoulda-matchers icon indicating copy to clipboard operation
shoulda-matchers copied to clipboard

counter_cache validation fails with Rails 7.2.beta

Open jetienne opened this issue 8 months ago • 2 comments

Description

Testing counter_cache no longer works with Rails 7.2.beta.

Reproduction Steps

Define an association like this:

belongs_to :company, optional: true, counter_cache: true

The following test will fail:

it { is_expected.to belong_to(:company).optional.counter_cache(true) }

System configuration

shoulda-matchers (6.2.0)

jetienne avatar Jun 21 '24 09:06 jetienne