Skip to content

Commit

Permalink
Clarify docs for Expectation#with yieldparam
Browse files Browse the repository at this point in the history
This seems more consistent with what we've done with the `param` YARD
tag type.
  • Loading branch information
floehopper committed Dec 8, 2024
1 parent 191f1f5 commit c3b4b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mocha/expectation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def at_most_once
#
# @param [Array<Object,ParameterMatchers::Base>] expected_parameters_or_matchers expected parameter values or parameter matchers.
# @yield optional block specifying custom matching.
# @yieldparam [*Array<Object>] actual_parameters parameters with which expected method was invoked.
# @yieldparam [Array<Object>] actual_parameters parameters with which expected method was invoked.
# @yieldreturn [Boolean] +true+ if +actual_parameters+ are acceptable.
# @return [Expectation] the same expectation, thereby allowing invocations of other {Expectation} methods to be chained.
#
Expand Down

0 comments on commit c3b4b8e

Please sign in to comment.