I'm wondering if there's another matcher I should use. Or if there are any custom matchers or gems for this?
CodePudding user response:
The problem with this is the current differ gem used by RSpec and they are already aware of the issue, though currently no fix exists, as can be seen by these tickets:
- https://github.com/rspec/rspec-support/issues/365
- https://github.com/rspec/rspec-expectations/issues/1120
One of the solutions in proposed for now in the ticket is similar to what Mosaaleb is suggesting.