--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Matches <tt>Hash</tt> containing entry with <tt>key</tt> and <tt>value</tt>.
- !ruby/struct:SM::Flow::VERB 
  body: "  object = mock()\n  object.expects(:method_1).with(has_entry('key_1', 1))\n  object.method_1('key_1' =&gt; 1, 'key_2' =&gt; 2)\n  # no error raised\n\n  object = mock()\n  object.expects(:method_1).with(has_entry('key_1' =&gt; 1))\n  object.method_1('key_1' =&gt; 1, 'key_2' =&gt; 2)\n  # no error raised\n\n  object = mock()\n  object.expects(:method_1).with(has_entry('key_1', 1))\n  object.method_1('key_1' =&gt; 2, 'key_2' =&gt; 1)\n  # error raised, because method_1 was not called with Hash containing entry: 'key_1' =&gt; 1\n\n  object = mock()\n  object.expects(:method_1).with(has_entry('key_1' =&gt; 1))\n  object.method_1('key_1' =&gt; 2, 'key_2' =&gt; 1)\n  # error raised, because method_1 was not called with Hash containing entry: 'key_1' =&gt; 1\n"
full_name: Mocha::ParameterMatchers#has_entry
is_singleton: false
name: has_entry
params: " has_entry(key, value) -> parameter_matcher\n\
  has_entry(key => value) -> parameter_matcher\n"
visibility: public
