rspec-expectations: If == matcher fails with empty Diff, error notice should be more helpful.
Comparing two objects via == that are not equal, but have no differences make rspec fail. The error notice shown is:
Diff:
It would be helpful if an explanation of what’s the problem shows up. Like the comparing with eq notice!
About this issue
- Original URL
- State: closed
- Created 12 years ago
- Comments: 33 (15 by maintainers)
Why it fails. 😉
Please read this again with a 100000 miles perspective:
Expected A Got A Diff
What should this mean? Whats the failure?
If one expects that A equals A and it fails with: “Hey you expected A but got A with a difference of none” its not very helpful, isn’t it? 😉
I think a little bit more explaination would be helpful.