From 191f1f5aec08c543fecb2ddbe2578873fc4c9b49 Mon Sep 17 00:00:00 2001 From: James Mead Date: Sun, 8 Dec 2024 18:04:19 +0000 Subject: [PATCH] Clarify docs for Expectation#with params 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. --- lib/mocha/expectation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mocha/expectation.rb b/lib/mocha/expectation.rb index f55918bd..41700949 100644 --- a/lib/mocha/expectation.rb +++ b/lib/mocha/expectation.rb @@ -202,7 +202,7 @@ def at_most_once # @see ParameterMatchers # @see Configuration#strict_keyword_argument_matching= # - # @param [*Array] expected_parameters_or_matchers expected parameter values or parameter matchers. + # @param [Array] expected_parameters_or_matchers expected parameter values or parameter matchers. # @yield optional block specifying custom matching. # @yieldparam [*Array] actual_parameters parameters with which expected method was invoked. # @yieldreturn [Boolean] +true+ if +actual_parameters+ are acceptable.