This repository has been archived by the owner on Nov 30, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Notice when object implement inspect but == is different (#1126)
* Notice when object implements identical `#inspect` but == returns false In a few cases the objects under test implement identical `inspect` output but the `eq` matcher will see a difference when doing `==`. This can lead to misleading output like this: ``` Failures: 1) Foo confuses users with an empty diff Failure/Error: Foo.something(Foo.new) #<Foo (class)> received :something with unexpected arguments expected: ("foobar") got: ("foobar") Diff: # ./spec/foo_spec.rb:13:in `block (2 levels) in <top (required)>' ``` This change adds a notice to help to understand this failed expectation. Fix: rspec/rspec-support#274
- Loading branch information