Parameter matcher which matches when actual parameter contains Hash entry with expected key.
@private
# File lib/mocha/parameter_matchers/has_key.rb, line 38 38: def matches?(available_parameters) 39: parameter = available_parameters.shift 40: return false unless parameter.respond_to?(:keys) 41: parameter.keys.any? { |key| @key.to_matcher.matches?([key]) } 42: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.