Skip to content

Commit

Permalink
Clarify docs for Expectation#with params
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
floehopper committed Dec 8, 2024
1 parent dc42922 commit 191f1f5
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 @@ -202,7 +202,7 @@ def at_most_once
# @see ParameterMatchers
# @see Configuration#strict_keyword_argument_matching=
#
# @param [*Array<Object,ParameterMatchers::Base>] expected_parameters_or_matchers expected parameter values or parameter matchers.
# @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.
# @yieldreturn [Boolean] +true+ if +actual_parameters+ are acceptable.
Expand Down

0 comments on commit 191f1f5

Please sign in to comment.