class Mocha::ParameterMatchers::AllOf
Parameter matcher which combines a number of other matchers using a logical AND.
def initialize(*matchers)
- Private: -
def initialize(*matchers) @matchers = matchers end
def matches?(available_parameters)
- Private: -
def matches?(available_parameters) parameter = available_parameters.shift @matchers.all? { |matcher| matcher.to_matcher.matches?([parameter]) } end
def mocha_inspect
- Private: -
def mocha_inspect "all_of(#{@matchers.map(&:mocha_inspect).join(', ')})" end