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