-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Align Spec::Be
, BeClose
failure message to other messages
#11946
Conversation
The failure message previously had its `to_s` method called on it, but other expectations use `inspect`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I'm adding it to 1.5 just because it might break some existing workflows and I don't want to rush it in 1.4
Sorry that I don't have time to try this, but what's the new failure message? |
New error message is
We can see from this one that the problem is because the first is not greater than the second because they're equal. The problem with the live one is that |
@beta-ziliani This makes sense. I never ran into this until yesterday because most of the I have it monkeypatched in my own |
Thanks! As a side note, "GreaterThan" could be changed to "greater than" at some point. I think before moving things to an enum it was "greater_than", which was slightly better though of course not ideal. |
It was |
Spec::Be
, BeClose
failure message to other messages
The failure message previously had its
to_s
method called on it, but other expectations useinspect
. This was creating failure messages like this: