forked from minitest/minitest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3fc22e7
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.
This fixes kwargs for me. Will you submit this as a PR to https://github.com/seattlerb/minitest?
3fc22e7
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.
@TSMMark the proper PR would need some tests. When I did take a look at them there was some complex system of combining different types of args to cover all the cases and stuff was too complex for me to figure it out. This edit is trivial, just two lines long so one who can figure out how those minitest tests are organized can just copy it, no need in crediting.
3fc22e7
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.
seems to cover this case. Am I missing anything?
3fc22e7
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.
@zenspider I think rather:
Or:
because the issue was in that it was
[["woot", {kw: 42}], {}]
instead of[["woot"], {kw: 42}]
.P.S.: it's weird that it broke anything else as I see in your commit history. I don't remember if I ran the tests of minitest itself on other versions of Ruby but the tests of my software using minitests passed on all versions of Ruby.
3fc22e7
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.
I had to roll out this patch because it broke in several other versions (all but 2.7?) .
Went with https://eregon.me/blog/2021/02/13/correct-delegation-in-ruby-2-27-3.html
I've improved the test. Thank you.