Skip to content
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

Expectation#with improvements #698

Merged
merged 8 commits into from
Dec 8, 2024
Merged

Conversation

floehopper
Copy link
Member

No description provided.

Verified

This commit was signed with the committer’s verified signature.
drazisil-codecov Joe Becher
The `expected_parameters_or_matchers` argument in the actual method
signature is already splatted and so it makes more sense that the
`param` YARD tag type does not use a splat.
This seems more consistent with what we've done with the `param` YARD
tag type.
This is accidental and possibly undesirable behaviour, but it seems
like an improvement to at least document the current behaviour.
Although there was already an example for this and the `yield`,
`yieldparam` & `yieldreturn` YARD tags were specified, I think it's
helpful to add some explanatory text to the method description.

Closes #682.
This is accidental and possibly undesirable behaviour, but it seems
like an improvement to at least document the current behaviour.

Clarifies potentially confusing behaviour which resulted in the opening
of #606.
Addressed an aside in the description of #682. This originally came up
in this commit [1].

[1]: 73c4ea6
Previously the output from a test where such an exception was not
matched was a bit confusing, because no expected parameters were
displayed. While we can't easily display the logic from the block
itself, we can at least highlight that such logic does exist.

While this will change the content of some test failure messages, I have
previously specified that is not part of the documented API. [1]

[1]: #577
@floehopper floehopper force-pushed the expectation-with-improvements branch from a4549c9 to b30e443 Compare December 8, 2024 18:58
@floehopper floehopper merged commit 4d4a027 into main Dec 8, 2024
17 checks passed
@floehopper floehopper deleted the expectation-with-improvements branch December 8, 2024 19:54
@floehopper
Copy link
Member Author

Released in v2.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant