Rails 7.1 dropped a custom implementation of .=== for models (in https://github.com/rails/rails/commit/31482d286790587a906c52ababf2e354fc2d460f) which allowed our mocks to pass the case equality check, this was a side effect of code they'd written for another means but we can restore the desired behaviour by mocking === on the class when defining a mock_model.
Rails 7.1 dropped a custom implementation of
.===
for models (in https://github.com/rails/rails/commit/31482d286790587a906c52ababf2e354fc2d460f) which allowed our mocks to pass the case equality check, this was a side effect of code they'd written for another means but we can restore the desired behaviour by mocking===
on the class when defining amock_model
.Fixes #54