-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
Fix diff for compound when transforming actual #1319
Conversation
it 'shows the reassigned value in diff' do | ||
expected_failure = | ||
dedent(<<-EOS) | ||
| expected "hello\\nworld" to eq downcase "bonjour\\nmonde" |
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.
Reassigning works slightly different from redefining - this line either has the original, or the new actual.
Obviously, this is the reason I didn't DRY up those two examples.
f5c90f1
to
dab40b8
Compare
dab40b8
to
a4d03fa
Compare
a4d03fa
to
8a4960e
Compare
8a4960e
to
0642760
Compare
@JonRowe Any objections to merge this? |
Previously, we were passing the untransformed actual to the differ. Now, we take it from the matchers. fixes #1317
0642760
to
56b9b74
Compare
I manually applied these changes to my local copy of 3.12.2 and it worked 100%! I would loooooove this to get released on the 3.x.x version pretty please? |
Would you send a PR to main? I’ away from my computer, but would happily approve the pr |
Previously, we were passing the untransformed actual to the differ.
Now, we take it from the matchers.
fixes #1317
fixes #1406