Parameter matcher which matches when actual parameter contains Hash entry with expected value.
@private
# File lib/mocha/parameter_matchers/has_value.rb, line 38 def matches?(available_parameters) parameter = available_parameters.shift return false unless parameter.respond_to?(:values) parameter.values.any? { |value| @value.to_matcher.matches?([value]) } end
Generated with the Darkfish Rdoc Generator 2.